/* MWMS Login Page - Premium Light Redesign */
:root {
    --brand-1: #7c3aed; /* Violet */
    --brand-2: #3b82f6; /* Blue */
    --panel-border: #e2e8f0;
    --card-bg: #ffffff;
    --card-shadow: 0 20px 50px rgba(124, 58, 237, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
    --login-text-dark: #0f172a;
}

body.login-page {
    background: #ffffff;
    background-color: #ffffff;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 24px;
    font-family: 'Outfit', sans-serif;
}

.auth-shell {
    width: min(1140px, 100%);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 48px;
}

.auth-hero {
    padding: 20px 10px;
    color: var(--login-text-dark);
    max-width: 520px;
}

.auth-logo {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 100%);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.25);
    margin-bottom: 18px;
    border: none;
}

.auth-logo-sub {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--brand-1);
}

.auth-title {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 16px 0;
    background: linear-gradient(135deg, var(--brand-1) 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    margin: 0 0 24px;
    font-size: clamp(1rem, 2.5vw, 1.18rem);
    font-weight: 500;
    color: #475569;
    line-height: 1.5;
}

.auth-points {
    display: grid;
    gap: 12px;
}

.auth-point {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    font-weight: 500;
    color: #475569;
}

.auth-point i {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light, #f5f3ff);
    color: var(--brand-1);
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.1);
}

.login-card {
    width: min(440px, 100%);
    border-radius: 20px;
    border: 1px solid var(--panel-border);
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(16px);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.login-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 60px rgba(124, 58, 237, 0.12);
}

.login-header {
    background: transparent;
    padding: 32px 36px 10px;
    text-align: center;
}

.login-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--login-text-dark);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.login-sub {
    font-size: 0.86rem;
    color: #64748b;
    margin-bottom: 0;
    font-weight: 500;
}

.login-body {
    padding: 10px 36px 32px;
    background: transparent;
}

.login-page .form-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    letter-spacing: 0.01em;
    margin-bottom: 6px;
}

.login-page .form-control {
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    font-size: 0.95rem;
    min-height: 46px;
    height: auto;
    color: #0f172a;
    transition: all 0.2s;
}

.login-page .form-control:focus {
    border-color: var(--brand-1);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
    background: #ffffff;
}

.login-page .input-group-text {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px 0 0 10px !important;
    color: #64748b;
    font-size: 0.95rem;
    min-height: 46px;
    transition: border-color 0.2s, background 0.2s;
}

.login-page .input-group:focus-within .input-group-text {
    border-color: var(--brand-1);
    background: #ffffff;
}

.login-page .form-control.border-start-0 {
    border-radius: 0 10px 10px 0 !important;
}

.btn-login {
    background: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 100%);
    border: none;
    border-radius: 10px;
    min-height: 46px;
    height: auto;
    font-weight: 700;
    font-size: 0.92rem;
    color: white;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.2);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
    color: white;
    opacity: 0.95;
}

.login-page .form-check-label {
    font-size: 0.8rem;
    color: #475569;
    font-weight: 500;
}

.forgot-link {
    font-size: 0.8rem;
    color: var(--brand-1);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: var(--brand-2);
    text-decoration: underline;
}

.login-footer {
    background: transparent;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    padding: 14px 24px;
    text-align: center;
    font-size: 0.74rem;
    color: #64748b;
    font-weight: 500;
}

.login-page .toggle-password {
    border-radius: 0 10px 10px 0 !important;
    cursor: pointer;
    min-height: 46px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-left: 0;
    transition: border-color 0.2s, background 0.2s;
}
.login-page .input-group:focus-within .toggle-password {
    border-color: var(--brand-1);
    background: #ffffff;
}

@media (max-width: 991.98px) {
    .auth-shell {
        grid-template-columns: 1fr;
        max-width: 480px;
        gap: 24px;
    }
    .auth-hero {
        max-width: 100%;
        text-align: center;
        padding-top: 0;
    }
    .auth-logo {
        margin-left: auto;
        margin-right: auto;
    }
    .auth-points {
        justify-items: center;
    }
    .login-header,
    .login-body {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 420px) {
    body.login-page {
        padding: 12px 10px;
    }
}
