﻿/*.login-card {
    width: 22rem;*/ /* was 18rem: room to breathe */
/*border: none;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);*/ /* lifts the card off the photo */
/*margin: 1.25rem 2.5rem 1.25rem 1.25rem;
}*/


/* Column sets width/position; card fills it */
.login-column {
    width: 22rem;
    margin: 1.25rem 2.5rem 1.25rem 1.25rem;
}


.login-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

    /* Remember username checkbox: match the Log in button blue (Bootstrap default is #0d6efd) */
    .login-card .form-check-input:checked {
        background-color: #1a6fad;
        border-color: #1a6fad;
    }

    /* Unchecked border: Bootstrap's #dee2e6 is ~1.3:1 on white; #5a8ab0 is ~3.7:1 (WCAG 1.4.11).
   Same color as the input icons, so it reads as part of the form. */
    .login-card .form-check-input {
        border-color: #5a8ab0;
    }

        /* Focus ring in the theme blue instead of Bootstrap's default */
        .login-card .form-check-input:focus {
            border-color: #1a6fad;
            box-shadow: 0 0 0 0.25rem rgba(26, 111, 173, 0.25);
        }



@media (max-width: 991.98px) {
    .login-column {
        width: 100%;
        margin: 1rem 0;
    }
}

#headerwrap {
    padding: 16px 0 8px;
    border-bottom: 1px solid #e5e5e5;
}

    #headerwrap h4,
    .container h4 {
        font-weight: 600;
        font-size: 18px;
        margin-bottom: .5rem;
    }

.login-info {
    margin: 40px 0;
}

.img-fluid.mb-15 {
    margin-bottom: 15px;
}


.validation-text {
    font-size: 0.875rem;
}

.desktop-input-group {
    display: flex;
    align-items: center;
    height: 48px; /* matches .desktop-btn-login */
    background: #eef4fb;
    border: 1px solid #c8ddf0;
    border-radius: 10px;
    overflow: hidden;
    padding: 0 4px;
}

.desktop-input-icon {
    padding: 0 10px;
    color: #5a8ab0;
    font-size: 18px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.desktop-input-group .form-control {
    border: none;
    background: transparent;
    box-shadow: none;
    padding-left: 4px;
    height: 100%;
}

    .desktop-input-group .form-control:focus {
        outline: none;
        box-shadow: none;
        background: transparent;
    }

.desktop-pw-toggle {
    background: none;
    border: none;
    color: #1a6fad;
    font-size: 13px;
    padding: 0 10px;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}

    .desktop-pw-toggle:focus-visible {
        outline: 3px solid #9CCBFA;
        outline-offset: 2px;
    }

.desktop-btn-login {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    background: #1a6fad;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    letter-spacing: 0.2px;
}

    .desktop-btn-login:hover {
        background: #155d94;
    }

    .desktop-btn-login:active {
        background: #0f4a78;
    }

    .desktop-btn-login:focus-visible {
        outline: 3px solid #9CCBFA;
        outline-offset: 2px;
    }

/* Error banner — mirrors .mobile-error-banner in LoginMobile.css.*/
.desktop-error-banner {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #fce8e8;
    border: 1px solid #e8b0b0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.875rem;
    color: #7a1a1a;
    margin-bottom: 12px;
}

/* Decorative warning icon */
.desktop-error-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: #d9534f;
}

/* Caps warning is always in the DOM (live region); collapse it when empty */
#capsWarning:empty {
    margin: 0;
}

/* Remember username checkbox label: matches validation text scale */
.desktop-remember-label {
    font-size: 0.875rem;
    color: #3a5a7a; /* passes WCAG 1.4.3 on white */
}

/* Mobile-site link below the card, over the photo.
   Worst case (pure white photo) the pill blends to about #60707F: ~5:1 with white text. */
.desktop-mobile-switch {
    text-align: center;
    margin-top: 1rem;
}

    .desktop-mobile-switch a {
        display: inline-flex;
        align-items: center;
        font-size: 0.875rem; 
        padding: 0.375rem 1rem 0.375rem 0.375rem; /* tighter left so the badge hugs the edge */
        gap: 0.5rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, .96); 
        color: #1a3a5c; /* ~11:1 on white, passes WCAG 1.4.3 */
        text-decoration: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); /* edge separation on light photos */
        white-space: nowrap
    }


        .desktop-mobile-switch a:hover {
            text-decoration: underline;
        }

        .desktop-mobile-switch a:focus-visible {
            outline: 3px solid #9CCBFA;
            outline-offset: 2px;
        }

.switch-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: #1a6fad;
    color: #ffffff;
    font-size: 0.875rem;
}

/* Chevron nudges right on hover/focus as an affordance */
.switch-arrow {
    font-size: 0.75rem;
    transition: transform 0.15s ease;
}


.desktop-mobile-switch a:hover .switch-arrow,
.desktop-mobile-switch a:focus-visible .switch-arrow {
    transform: translateX(3px);
}

/* WCAG 2.3.3: no motion for users who've asked for less */
@media (prefers-reduced-motion: reduce) {
    .switch-arrow {
        transition: none;
    }
}


/* Recovery links under the Log in button */
.desktop-forgot-row {
    text-align: center;
    font-size: 0.875rem;
    color: #3a5a7a;
    margin: 0.75rem 0 0;
}

.desktop-forgot-row a {
    color: #1a6fad;
}

/* Chrome autofill paints its own background; repaint it to match the input group.
   Inset shadow is the standard workaround since autofill ignores background-color. */
.desktop-input-group .form-control:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #eef4fb inset;
    -webkit-text-fill-color: #1a2a3a;
}


/* Card heading: no gray bar, just a title with breathing room */
.desktop-card-header {
    padding: 1.5rem 1.75rem 0;
}

.desktop-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a3a5c;
    margin: 0;
}

/* More inner space than Bootstrap's default card padding */
.login-card .card-body {
    padding: 1.25rem 1.75rem 1.5rem;
}

/* "or" divider with lines on each side */
.desktop-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0 1rem;
    font-size: 0.8125rem;
    color: #3a5a7a;
}

    .desktop-divider::before,
    .desktop-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #d0dcea;
    }

/* Secondary (outlined) button: same size as Log in, lower visual weight */
.desktop-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    border: 1.5px solid #1a6fad;
    border-radius: 10px;
    background: transparent;
    color: #1a6fad;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}

    .desktop-btn-secondary:hover {
        background: #eef4fb;
        color: #155d94;
    }

    .desktop-btn-secondary:focus-visible {
        outline: 3px solid #9CCBFA;
        outline-offset: 2px;
    }


/* MainLayout locks <main> to viewport height so the dashboard chart can fill it.
   The login page is a normal scrolling page, so let <main> grow with its content.
   "body" prefix outranks the scoped .page-main[b-xxx] rule from MainLayout.razor.css. */
body .page-wrapper > .page-main {
    flex: 1 0 auto;
}


/* Full-width bar: removes the outer gap and rounded corners from the stored alert */
.maintenance-banner .alert {
    margin: 0;
    border-radius: 0;
    border-width: 0 0 1px 0;
}
