/* ─── Login Page Styles ─────────────────────────────────────────────────── */

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.login-background {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* ─── Container ──────────────────────────────────────────────────────────── */
.login-container {
    display: flex;
    width: 900px;
    max-width: 98vw;
    min-height: 520px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

/* ─── Left Panel ─────────────────────────────────────────────────────────── */
.login-left-panel {
    flex: 1;
    position: relative;
    background: linear-gradient(160deg, #0f3460 0%, #533483 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .login-left-panel img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.35;
        position: absolute;
        top: 0;
        left: 0;
    }

/* ─── Snowflakes ─────────────────────────────────────────────────────────── */
.login-left-panel__snow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.snowflakes {
    position: relative;
    width: 100%;
    height: 100%;
}

.snowflake {
    position: absolute;
    top: -20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    animation: snowfall linear infinite;
    user-select: none;
}

    .snowflake:nth-child(1)  { left: 5%;  animation-duration: 7s;  animation-delay: 0s;    font-size: 1.0rem; }
    .snowflake:nth-child(2)  { left: 12%; animation-duration: 8s;  animation-delay: 1s;    font-size: 1.4rem; }
    .snowflake:nth-child(3)  { left: 22%; animation-duration: 6s;  animation-delay: 2s;    font-size: 0.9rem; }
    .snowflake:nth-child(4)  { left: 33%; animation-duration: 9s;  animation-delay: 0.5s;  font-size: 1.3rem; }
    .snowflake:nth-child(5)  { left: 44%; animation-duration: 7.5s; animation-delay: 1.5s; font-size: 1.0rem; }
    .snowflake:nth-child(6)  { left: 55%; animation-duration: 8.5s; animation-delay: 3s;   font-size: 1.2rem; }
    .snowflake:nth-child(7)  { left: 63%; animation-duration: 6.5s; animation-delay: 0.8s; font-size: 0.8rem; }
    .snowflake:nth-child(8)  { left: 72%; animation-duration: 7s;  animation-delay: 2.5s;  font-size: 1.5rem; }
    .snowflake:nth-child(9)  { left: 80%; animation-duration: 9.5s; animation-delay: 1.2s; font-size: 0.9rem; }
    .snowflake:nth-child(10) { left: 88%; animation-duration: 8s;  animation-delay: 3.5s;  font-size: 1.1rem; }
    .snowflake:nth-child(11) { left: 15%; animation-duration: 7.2s; animation-delay: 4s;   font-size: 1.3rem; }
    .snowflake:nth-child(12) { left: 40%; animation-duration: 6.8s; animation-delay: 0.3s; font-size: 1.0rem; }
    .snowflake:nth-child(13) { left: 58%; animation-duration: 8.3s; animation-delay: 2.2s; font-size: 0.7rem; }
    .snowflake:nth-child(14) { left: 75%; animation-duration: 7.7s; animation-delay: 1.8s; font-size: 1.4rem; }
    .snowflake:nth-child(15) { left: 92%; animation-duration: 9.2s; animation-delay: 0.6s; font-size: 1.1rem; }
    .snowflake:nth-child(16) { left: 28%; animation-duration: 8.8s; animation-delay: 3.2s; font-size: 0.85rem; }

@keyframes snowfall {
    0%   { transform: translateY(0) rotate(0deg);   opacity: 1; }
    100% { transform: translateY(115vh) rotate(360deg); opacity: 0; }
}

/* ─── Right Panel ────────────────────────────────────────────────────────── */
.login-right-panel {
    width: 380px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
}

    @media (max-width: 700px) {
        .login-container {
            flex-direction: column;
        }

        .login-left-panel {
            min-height: 160px;
        }

        .login-right-panel {
            width: 100%;
        }
    }

/* ─── Form Container ─────────────────────────────────────────────────────── */
.login-form-container {
    width: 100%;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-form-title h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f3460;
    margin: 0 0 0.5rem 0;
    text-align: center;
    letter-spacing: 1px;
}

.login-form-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.login-form-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.login-form-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #6c757d;
}

    .login-form-info p {
        margin: 0;
    }

.form-outline {
    position: relative;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .login-container {
        border-radius: 0;
        min-height: 100vh;
    }

    .login-left-panel {
        display: none;
    }

    .login-right-panel {
        width: 100%;
        min-height: 100vh;
    }
}
