﻿/* ==========================================================
   LOGIN CARD
   ========================================================== */

.login-card {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    gap: 24px;
}

/* ==========================================================
   HEADER
   ========================================================== */

.login-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-eyebrow {
    color: #60a5fa;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.login-header h1 {
    margin: 0;
    color: #f8fafc;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1.1px;
}

.login-header p {
    margin: 0;
    color: #7c8aa0;
    font-size: 13px;
    line-height: 1.65;
}

/* ==========================================================
   FORM
   ========================================================== */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.login-forgot-link {
    color: #60a5fa;
    font-size: 10px;
    font-weight: 750;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .login-forgot-link:hover {
        color: #93c5fd;
    }

.login-remember {
    width: fit-content;
}

/* ==========================================================
   SUBMIT BUTTON
   ========================================================== */

.login-submit {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient( 135deg, #2563eb, #3b82f6);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

    .login-submit:hover:not(:disabled) {
        transform: translateY(-1px);
        filter: brightness(1.06);
        box-shadow: 0 15px 30px rgba(37, 99, 235, 0.28);
    }

    .login-submit:active:not(:disabled) {
        transform: translateY(0);
    }

    .login-submit:disabled {
        cursor: not-allowed;
        opacity: 0.65;
    }

.login-submit-arrow {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.login-submit:hover:not(:disabled)
.login-submit-arrow {
    transform: translateX(3px);
}

/* ==========================================================
   LOADING SPINNER
   ========================================================== */

.login-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.32);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: login-spin 0.75s linear infinite;
}

@keyframes login-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================
   DIVIDER
   ========================================================== */

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #475569;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

    .login-divider::before,
    .login-divider::after {
        height: 1px;
        flex: 1;
        content: "";
        background: rgba(255, 255, 255, 0.06);
    }

/* ==========================================================
   FOOTER
   ========================================================== */

.login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #64748b;
    font-size: 12px;
}

    .login-footer a {
        color: #60a5fa;
        font-weight: 800;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .login-footer a:hover {
            color: #93c5fd;
        }

/* ==========================================================
   SECURITY NOTE
   ========================================================== */

.login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #475569;
    font-size: 11px;
}

/* ==========================================================
   STATUS MESSAGE
   ========================================================== */

.alert {
    margin: 0;
    padding: 11px 13px;
    border: 1px solid rgba(239, 68, 68, 0.24);
    border-radius: 10px;
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.06);
    font-size: 11px;
    line-height: 1.5;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 560px) {
    .login-card {
        gap: 20px;
    }

    .login-header h1 {
        font-size: 28px;
    }

    .login-form {
        gap: 16px;
    }

    .login-label-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .login-footer {
        flex-wrap: wrap;
        text-align: center;
    }
}
