/* PAGE BACKGROUND */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color:white;
    background: linear-gradient( 120deg, #0a1128, #1c2b4d, #0a1128 );
    background-size: 200% 200%;
    /* Removed infinite animation to prevent flickering with backdrop-filter */
    /* animation: gradientMove 15s ease-in-out infinite; */
}
    .auth-page::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient( circle at 20% 30%, rgba(201,168,76,0.06), transparent 40% );
        pointer-events: none;
    }

/* BIG BACKGROUND TEXT */
.auth-bg-text {
    position: absolute;
    left: 80px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 100px;
    font-weight: 800;
    color: rgba(255,255,255,0.04);
    line-height: 1.1;
    pointer-events: none;
    /* ANIMATION */
    opacity: 0;
    animation: fadeUp 1.2s ease-out forwards;
}

/* CARD */
.auth-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 900px;
    max-width: 95%;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(17, 34, 64, 0.95); /* Increased opacity instead of blur */
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 40px rgba(17,34,64,0.3);
    opacity: 0; /* Set initial opacity to 0 to prevent blinking when animation starts */
    animation: cardEntrance 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* LEFT SIDE */
.auth-left {
    position: relative;
    background: linear-gradient(135deg, #112240, #1a2f5a);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    overflow: hidden;
}

    .auth-left::before {
        content: "";
        position: absolute;
        inset: 0;
        background: url('/images/logo_transparent_clean.png') no-repeat center;
        background-size: 200%;
        opacity: 0.035;
        transform: scale(1.1); /* subtle enlargement */
        filter: blur(0.4px);
        pointer-events: none;
    }

.brand h1 {
    color: white;
    font-size: 28px;
    letter-spacing: 3px;
}

.brand p {
    color: #cbd5e1;
    margin-top: 12px;
    font-size: 14px;
}

/* RIGHT SIDE */
.auth-right {
    background: rgba(255,255,255,0.02);
    padding: 50px;
    display: flex;
    align-items: center;
}

/* FORM */
.form-container {
    width: 100%;
}

/* TITLE */
.title {
    font-size: 30px;
    font-weight: 600;
    color: white;
}

.subtitle {
    color: #94a3b8;
    margin-bottom: 25px;
}

/* INPUT */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

    .input-group input {
        width: 100%;
        padding: 14px;
        background: transparent;
        border: 1px solid #334155;
        border-radius: 8px;
        color: white;
        outline: none;
    }

        /* FOCUS */
        .input-group input:focus {
            border-color: #c9a84c;
            box-shadow: 0 0 0 2px rgba(201,168,76,0.2);
        }

    /* LABEL */
    .input-group label {
        position: absolute;
        left: 12px;
        top: 14px;
        color: #94a3b8;
        font-size: 14px;
        transition: 0.3s;
        pointer-events: none;
        background: #112240;
        padding: 0 5px;
    }

    .input-group input:focus + label,
    .input-group input:valid + label {
        top: -8px;
        font-size: 12px;
        color: #c9a84c;
    }

/* BUTTON */
.btn-primary {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    background: #c9a84c;
    color: black;
    font-weight: 600;
    border: none;
}

    .btn-primary:hover {
        background: #d4b25a;
        transform: translateY(-2px);
    }

/* RESPONSIVE */
@media (max-width: 768px) {
    .auth-card {
        grid-template-columns: 1fr;
    }

    .auth-left {
        display: none;
    }

    .auth-bg-text {
        display: none;
    }
}

/* ANIMATION */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%);
    }
}

@keyframes logoFade {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 0.06;
        transform: scale(1);
    }
}

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}