/* Login page only — loaded after the dashboard theme so its controls stay isolated. */
.login-page {
    --login-ink: #20253a;
    --login-muted: #858ba3;
    --login-blue: #0d6efd;
    --login-blue-dark: #0b5ed7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 40px 20px 24px;
    background: #F6F7FB;
    font-family: "Mulish", sans-serif;
}

.login-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(2px);
}

.login-glow--top {
    width: 420px;
    height: 420px;
    top: -220px;
    right: -120px;
    background: rgba(13, 110, 253, 0.12);
}

.login-glow--bottom {
    width: 300px;
    height: 300px;
    bottom: -180px;
    left: -100px;
    background: rgba(46, 157, 228, 0.1);
}

.login-shell {
    width: min(100%, 460px);
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid #ececf4;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(39, 78, 128, 0.12);
}

.login-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px clamp(30px, 7vw, 58px) 36px;
    background: #fff;
}

.login-card-header { margin-bottom: 14px; }

.login-brand {
    margin-bottom: 12px;
    text-align: center;
}

.login-brand h1 {
    margin: 0;
    color: var(--login-blue);
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1;
}

.login-brand p {
    margin: 9px 0 0;
    color: #a2a8b8;
    font-size: 11px;
}

.login-brand a {
    color: var(--login-blue);
    font-weight: 700;
}

.login-brand a:hover { color: var(--login-blue-dark); }

.login-version {
    display: inline-block;
    align-self: center;
    margin-top: 18px;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--login-blue-dark);
    background: #eaf2ff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.login-brand a:focus-visible,
.login-password-toggle:focus-visible,
.login-submit:focus-visible {
    outline: 3px solid rgba(13, 110, 253, 0.22);
    outline-offset: 3px;
}

.login-eyebrow {
    margin: 0 0 8px;
    color: var(--login-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.login-card h2 {
    margin: 0 0 9px;
    color: var(--login-ink);
    font-size: 30px;
    font-weight: 800;
}

.login-subtitle {
    margin: 0;
    color: var(--login-muted);
    font-size: 13px;
    line-height: 1.6;
}

.login-form { width: 100%; }
.login-field { margin-bottom: 21px; }

.login-field label {
    display: block;
    margin-bottom: 8px;
    color: #3e4358;
    font-size: 13px;
    font-weight: 700;
}

.login-label-row {
    display: flex;
    justify-content: space-between;
}

.login-input-wrap { position: relative; }

.login-input-wrap .form-control {
    height: 49px;
    padding: 0 45px 0 43px;
    border: 1px solid #e5e7ef;
    border-radius: 12px;
    color: var(--login-ink);
    background: #fafbfe;
    font-size: 13px;
    transition: 0.2s ease;
}

.login-input-wrap .form-control::placeholder { color: #b5bac8; }

.login-input-wrap .form-control:focus {
    border-color: var(--login-blue) !important;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1) !important;
}

.login-input-wrap .form-control.is-invalid { border-color: #e35d6a; }

.login-input-icon {
    position: absolute;
    top: 17px;
    left: 16px;
    z-index: 2;
    color: #a9afc1;
    font-size: 14px;
}

.login-password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 45px;
    height: 49px;
    border: 0;
    color: #a9afc1;
    background: transparent;
    cursor: pointer;
    transition: color 0.2s ease;
}

.login-password-toggle:hover,
.login-password-toggle:focus { color: var(--login-blue); }

.login-error {
    display: block;
    margin-top: 6px;
    color: #d94c5d;
    font-size: 11px;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #ffd9dd;
    border-radius: 10px;
    color: #b52e3e;
    background: #fff5f6;
    font-size: 11px;
    line-height: 1.5;
}

.login-submit {
    width: 100%;
    min-height: 50px;
    margin-top: 4px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(90deg, #0d6efd 0%, #1976d2 70%, #2e9de4 100%);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.2);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.login-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 13px 24px rgba(13, 110, 253, 0.28);
}

.login-submit:disabled { opacity: 0.75; cursor: wait; }
.login-submit i { margin-left: 6px; }

.login-help {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 27px 0 0;
    color: #a2a8b8;
    font-size: 11px;
}

.login-help i { color: #70b99a; }

.login-copyright {
    position: relative;
    z-index: 1;
    margin: 18px 0 0;
    color: #a5aabd;
    font-size: 11px;
}

@media (max-width: 767.98px) {
    .login-page { padding: 24px 16px 18px; }
    .login-shell { border-radius: 22px; }
    .login-card { padding: 34px 27px 30px; }
    .login-card-header { margin-bottom: 26px; }
    .login-card h2 { font-size: 27px; }
}
