@import url('https://fonts.googleapis.com/css2?family=Allison&display=swap');

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

#title {
    font-family: 'Allison', cursive;
    font-size: 2.5rem;
}

#subtitle {
    font-family: 'Allison', cursive;
    font-size: 1.5rem;
}

.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 2s ease-in-out, filter 2s ease-in-out;
    z-index: -1;
    opacity: 0;
    transform: scale(1.02);
}

.bg-layer.active {
    opacity: 1;
}

.bg-layer.blurred {
    filter: blur(20px);
}

#bg-login {
    background-image: url("../img/bg_blur.jpg");
}

#bg-portal {
    background-image: url("../img/bg.jpg");
}

.portal-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 450px;
    text-align: center;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 1.5rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.modal-overlay.hidden .modal-content {
    transform: translateY(20px);
}

.modal-content h2 {
    font-family: 'Allison', cursive;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.modal-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    cursor: pointer;
}

.link-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.portal-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.portal-link:hover {
    background: #ae7f95;
    transform: translateX(10px);
    border-color: transparent;
}

.portal-link svg {
    width: 20px;
    height: 20px;
    opacity: 0.5;
}

input[type="password"] {
    width: 100%;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    color: white;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    outline: none;
    text-align: center;
}

.error {
    color: #ef4444;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.portal-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.05em;
}

.portal-title-dashboard {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.05em;
}

.portal-subtitle {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2.5rem;
}

.portal-subtitle-dashboard {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 1.25rem;
}

@media (max-width: 768px) {
    .portal-card {
        background: none;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
        padding: 1rem;
    }
}