﻿/* full-screen overlay, hidden by default */
#loginOverlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.85);
    display: none; /* ← hidden initially */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
}

/* the multi-color ring */
.spinner-ring {
    position: relative;
    width: 4rem;
    height: 4rem;
    animation: spin 1s linear infinite;
}

    .spinner-ring div {
        box-sizing: border-box;
        position: absolute;
        inset: 0;
        border: .5rem solid transparent;
        border-radius: 50%;
    }

        .spinner-ring div:nth-child(1) {
            border-top-color: #9F3700;
        }

        .spinner-ring div:nth-child(2) {
            border-top-color: #808000;
            transform: rotate(90deg);
        }

        .spinner-ring div:nth-child(3) {
            border-top-color: #DB4437;
            transform: rotate(180deg);
        }

        .spinner-ring div:nth-child(4) {
            border-top-color: #0A0A0A;
            transform: rotate(270deg);
        }


@@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* cycling letter in the middle */
.spinner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font: 1.25rem/1 monospace;
    color: #333;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Defect 151847: give the language strip a distinct background so buttons are
   visually distinguishable against the white nav (#fefefe). Buttons get an
   explicit border for a visible shape cue (meets WCAG 1.4.1 Use of Color). */
.language-options {
    list-style: none;
    margin: 0;
    padding: 6px 10px;
    display: flex;
    flex-wrap: wrap;
    background-color: #e8e8e8;
}

.lang-btn {
    background-color: #ffffff;
    border: 1px solid #767676;
    cursor: pointer;
    padding: 5px 10px;
    margin: 0 5px;
    font-size: inherit;
    color: #1a1a1a;
    border-radius: 12px;
}

.lang-btn:hover {
    background-color: #d3d3d3;
}

.lang-btn.active,
.lang-btn[aria-pressed="true"] {
    /* SC 1.4.3: #595959 background achieves ≥4.5:1 contrast with white text */
    background-color: #595959;
    color: #fff;
    border-color: #595959;
    border-radius: 12px;
}

.lang-btn:focus-visible {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
    background-color: #f0f8ff;
}

/* Defect 165219: the page focuses the selected language button on load, so the
   focus-visible background above was replacing the active button's dark background
   while its white text stayed - the selected language read as white-on-white.
   Keep the dark selected look under focus; the outline still marks focus. */
.lang-btn.active:focus-visible,
.lang-btn[aria-pressed="true"]:focus-visible {
    background-color: #595959;
    color: #fff;
}

/* WCAG 3.3.2 — required field instruction displayed above form fields */
.form-instructions {
    color: #fefefe;
    font-size: .875rem;
    margin-bottom: .5rem;
    text-align: left;
}