/* full-screen bg */
.login-container {
    width: 100vw;
    height: 100vh;
    background: url("../images/loginAnimationPoster.png") no-repeat center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-leave {
    opacity: 0;
    transition: opacity .15s ease-in;
    pointer-events: none;
}

/* full-viewport video behind everything */
#bg-video {
    position: fixed; /* covers viewport */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.85);
    pointer-events: none;
    background: #000;
}

.login-card {
    z-index: 2;
    background: rgba(255, 255, 255, 0.95); /* clean frosted white */
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.4); /* soft white edge */
    box-shadow: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.45);
    max-width: 22.5rem;
    width: 100%;
}

.login-card input:not([disabled]):not([readonly]) {
    background-color: rgba(255, 255, 255, 0.98) !important; /* bright crisp white */
    color: #000 !important;
    /*border: 1px solid rgb(0, 123, 255);*/
}

.login-card input[disabled],
.login-card input[readonly] {
    background-color: rgba(193, 189, 189, 0.68) !important; /* cooler, darker grayish white */
    color: rgba(0, 0, 0, 0.45) !important;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Remove Bootstrap/GWT input glow & focus outlines */
.login-card input.form-control,
.login-card input {
    box-shadow: none !important;
    outline: none !important;
}

/* Keep a single blue border on focus */
.login-card input:focus {
    border: 1px solid rgb(0, 123, 255) !important;
    box-shadow: none !important;
}

/* kill the GWT default bg-image on our login button */
.login-card .gwt-Button {
    background: none !important;
    background-image: none !important;
}

/* login.css — loaded *after* bootstrap.css */
.login-card .btn {
    background-color: #007bff !important;
    color: #fff !important;
    border: none !important;
}

.login-card .logo-full {
    max-width: 260px;
    width: 100%;
    height: auto; /* keep aspect ratio to prevent squashing */
}

.login-card .btn:hover {
    background-color: #0056b3 !important;
}

/* little accent bar under the button */
.button-overlay {
    width: 3.75rem;
    height: 0.25rem;
    background: rgba(0, 123, 255, 0.4);
    margin: 1rem 0;
    border-radius: 2px;
}

/* footer text */
.login-footer {
    font-size: 0.8rem;
    color: #555;
    text-align: center;
    width: 100%;
}

.logo-full {
    /* maintain aspect ratio for various logo shapes */
    max-width: 200px;
    width: 100%;
    height: auto;
    opacity: 1;
}

/* tiny inline spinner used inside the Sign In button */
.btn .btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnspin .6s linear infinite;
    vertical-align: middle;
    /* keep spinner centered roughly where text would be */
    margin: 2px 0;
}

@keyframes btnspin {
    to {
        transform: rotate(360deg);
    }
}

/* keep button height when label is swapped out */
.login-card .btn {
    min-height: 38px; /* adjust if needed to match your current button height */
}

/* SSO Login Section */
.sso-divider {
    font-size: 0.875rem;
}

.login-card .btn-outline-secondary {
    background-color: white !important;
    color: #6c757d !important;
    border: 1px solid #ced4da !important;
}

.login-card .btn-outline-secondary:hover {
    background-color: #f8f9fa !important;
    border-color: #adb5bd !important;
}

.sso-section {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1rem;
}

.sso-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.sso-section .btn {
    padding: 0.5rem 1rem;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.875rem;
}
