
/* =============================================
   The sign-in pages, rendered by the host before any app loads, as the client access mockups draw them
   (GG.ExcellenceDashboard/mockups 01, 06-10, 12-14). The dashboard's palette and type; every class
   starts ac-.
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.ac-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--gc-grey-05); min-height: 100vh; color: var(--gc-navy);
    display: flex; align-items: center; justify-content: center; padding: 24px 0;
}
body.ac-page::before {
    content: ''; position: fixed; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(78, 118, 125, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(41, 65, 76, 0.04) 0%, transparent 50%);
}

a:focus-visible, button:focus-visible, input:focus-visible, label:focus-within {
    outline: 3px solid var(--gc-teal); outline-offset: 2px;
}

/* The hidden attribute wins over any class that sets display (a message box waiting for an error, say). */
[hidden] { display: none !important; }

.ac-visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* The split card: the brand on the left, the form on the right (01, 13) */
.ac-split {
    background: var(--gc-white); border-radius: var(--gc-radius); box-shadow: 0 4px 24px rgba(41, 65, 76, 0.12);
    display: flex; max-width: 740px; width: 90%; overflow: hidden; position: relative;
}
.ac-split::before, .ac-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 2;
    background: linear-gradient(90deg, var(--gc-navy), var(--gc-teal));
}
.ac-brand {
    background: var(--gc-navy); padding: 50px 40px; display: flex; flex-direction: column; align-items: center;
    justify-content: center; min-width: 260px; position: relative; overflow: hidden;
}
.ac-brand::after, .ac-brand-header::after {
    content: ''; position: absolute; top: -40%; right: -40%; width: 120%; height: 120%; pointer-events: none;
    background: radial-gradient(circle, rgba(78, 118, 125, 0.15) 0%, transparent 60%);
}
.ac-brand img { height: 60px; width: auto; position: relative; z-index: 1; }
.ac-brand-subtitle {
    color: rgba(255, 255, 255, 0.7); font-size: 0.8em; font-weight: 600; letter-spacing: 1.5px;
    text-transform: uppercase; margin-top: 16px; position: relative; z-index: 1; text-align: center;
}
.ac-split-body { flex: 1; padding: 44px 42px; display: flex; flex-direction: column; justify-content: center; }
.ac-split-body h1 { font-size: 1.4em; font-weight: 900; color: var(--gc-navy); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.ac-subtitle { font-size: 0.88em; color: var(--gc-grey-60); margin-bottom: 30px; line-height: 1.5; }

/* The single card, under a brand header (06-10, 12, 14) */
.ac-card {
    background: var(--gc-white); border-radius: var(--gc-radius); box-shadow: 0 4px 24px rgba(41, 65, 76, 0.12);
    max-width: 480px; width: 90%; position: relative; overflow: hidden;
}
.ac-card.ac-narrow { max-width: 440px; }
.ac-card.ac-wide { max-width: 520px; }
.ac-brand-header { background: var(--gc-navy); padding: 26px 40px; text-align: center; position: relative; overflow: hidden; }
.ac-brand-header img { height: 40px; position: relative; z-index: 1; }
.ac-brand-header .ac-brand-subtitle { margin-top: 10px; font-size: 0.78em; }
.ac-card-body { padding: 34px 40px; }
.ac-heading { text-align: center; margin-bottom: 28px; }
.ac-heading h1 { font-size: 1.2em; font-weight: 900; color: var(--gc-navy); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.ac-heading p { font-size: 0.88em; color: var(--gc-grey-60); line-height: 1.5; }
.ac-heading strong { color: var(--gc-teal); font-weight: 700; overflow-wrap: anywhere; }
.ac-icon {
    width: 60px; height: 60px; border-radius: 50%; background: rgba(78, 118, 125, 0.08);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.ac-icon i { font-size: 1.4em; color: var(--gc-teal); }
.ac-icon.ac-amber { background: rgba(212, 174, 47, 0.1); }
.ac-icon.ac-amber i { color: var(--gc-warning-text); }
.ac-icon.ac-green { background: rgba(37, 136, 67, 0.1); }
.ac-icon.ac-green i { color: var(--gc-success-text); }
.ac-hint-line { font-size: 0.82em; color: var(--gc-grey-60); text-align: center; margin-bottom: 22px; overflow-wrap: anywhere; }
.ac-hint-line strong { color: var(--gc-teal); }

/* Fields */
.ac-field { margin-bottom: 20px; }
.ac-field label, .ac-label {
    display: block; font-size: 0.82em; font-weight: 700; color: var(--gc-navy); text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 8px;
}
.ac-field input[type=email], .ac-field input[type=text], .ac-field input[type=password], .ac-field input:not([type]) {
    width: 100%; padding: 12px 14px; font-family: inherit; font-size: 0.9em; color: var(--gc-navy); background: var(--gc-white);
    border: 1.5px solid var(--gc-grey-30); border-radius: var(--gc-radius); outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ac-field input:focus { border-color: var(--gc-teal); box-shadow: 0 0 0 3px rgba(78, 118, 125, 0.12); outline: none; }
.ac-field input::placeholder { color: var(--gc-grey-50); }
.ac-password { position: relative; }
.ac-password input { padding-right: 44px !important; }
.ac-toggle {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none;
    color: var(--gc-grey-60); cursor: pointer; font-size: 0.95em; padding: 6px;
}
.ac-toggle:hover { color: var(--gc-teal); }
.ac-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.ac-check { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82em; font-weight: 600; color: var(--gc-grey-70); cursor: pointer; }
.ac-check input { accent-color: var(--gc-teal); width: 16px; height: 16px; cursor: pointer; }
.ac-link { font-size: 0.82em; font-weight: 600; color: var(--gc-teal); text-decoration: none; background: none; border: none; cursor: pointer; font-family: inherit; }
.ac-link:hover { text-decoration: underline; }
.ac-back {
    display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; font-size: 0.82em;
    color: var(--gc-grey-60); text-decoration: none; font-weight: 600; background: none; border: none; cursor: pointer; font-family: inherit; width: 100%;
}
.ac-back:hover { color: var(--gc-teal); }

/* Messages */
.ac-error, .ac-info {
    display: flex; align-items: flex-start; gap: 8px; padding: 10px 14px; border-radius: var(--gc-radius);
    font-size: 0.82em; font-weight: 600; margin-bottom: 20px; line-height: 1.45;
}
.ac-error { background: rgba(229, 43, 42, 0.06); border: 1px solid rgba(229, 43, 42, 0.2); color: var(--gc-error); }
.ac-info { background: rgba(78, 118, 125, 0.06); border: 1px solid rgba(78, 118, 125, 0.2); color: var(--gc-navy); }
.ac-error i, .ac-info i { margin-top: 2px; }
.ac-note {
    display: flex; gap: 10px; padding: 12px 16px; margin-top: 20px; font-size: 0.8em; line-height: 1.5; color: var(--gc-grey-70);
    background: rgba(212, 174, 47, 0.06); border: 1px solid rgba(212, 174, 47, 0.3); border-radius: var(--gc-radius);
}
.ac-note i { color: var(--gc-warning-text); margin-top: 2px; }

/* Buttons */
.ac-btn {
    width: 100%; padding: 14px 24px; font-family: inherit; font-size: 0.9em; font-weight: 700; color: var(--gc-white);
    background: var(--gc-teal); border: none; border-radius: var(--gc-radius); cursor: pointer; transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center; gap: 10px; text-transform: uppercase;
    letter-spacing: 0.5px; text-decoration: none;
}
.ac-btn:hover { background: var(--gc-teal-hover); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(78, 118, 125, 0.3); }
.ac-btn.ac-inline { display: inline-flex; width: auto; padding: 13px 28px; }
.ac-btn-outline {
    width: 100%; padding: 13px 24px; font-family: inherit; font-size: 0.88em; font-weight: 700; color: var(--gc-navy);
    background: var(--gc-white); border: 2px solid var(--gc-grey-30); border-radius: var(--gc-radius); cursor: pointer; transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
}
.ac-btn-outline:hover { border-color: var(--gc-navy); background: var(--gc-grey-02); }
.ac-btn-small {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; font-family: inherit; font-size: 0.82em;
    font-weight: 600; color: var(--gc-grey-70); background: var(--gc-white); border: 1.5px solid var(--gc-grey-30); border-radius: var(--gc-radius);
    cursor: pointer; transition: all 0.2s ease; text-decoration: none;
}
.ac-btn-small:hover { border-color: var(--gc-navy); background: var(--gc-grey-02); }
.ac-btn-small i { color: var(--gc-navy); }
.ac-divider {
    display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--gc-grey-60); font-size: 0.78em;
    font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
}
.ac-divider::before, .ac-divider::after { content: ''; flex: 1; height: 1px; background: var(--gc-grey-30); }

/* The chooser's two ways in (01) */
.ac-choice {
    display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 22px; border: 2px solid transparent;
    border-radius: var(--gc-radius); font-family: inherit; font-size: 0.9em; font-weight: 700; cursor: pointer;
    transition: all 0.3s ease; text-decoration: none; text-align: left;
}
.ac-choice-icon { width: 40px; height: 40px; border-radius: var(--gc-radius); display: flex; align-items: center; justify-content: center; font-size: 1.1em; flex-shrink: 0; }
.ac-choice-text { display: flex; flex-direction: column; }
.ac-choice-desc { font-size: 0.82em; font-weight: 400; margin-top: 2px; opacity: 0.8; }
.ac-choice.ac-client { background: var(--gc-teal); color: var(--gc-white); }
.ac-choice.ac-client .ac-choice-icon { background: rgba(255, 255, 255, 0.15); color: var(--gc-white); }
.ac-choice.ac-client:hover { background: var(--gc-teal-hover); transform: translateY(-2px); box-shadow: 0 4px 14px rgba(78, 118, 125, 0.3); }
.ac-choice.ac-sso { background: var(--gc-white); color: var(--gc-navy); border-color: var(--gc-grey-30); }
.ac-choice.ac-sso .ac-choice-icon { background: var(--gc-navy); color: var(--gc-white); }
.ac-choice.ac-sso:hover { border-color: var(--gc-navy); background: var(--gc-grey-02); transform: translateY(-2px); box-shadow: 0 4px 14px rgba(41, 65, 76, 0.12); }

/* Six boxes for a code (08, 14); one plain box until the script splits it */
.ac-code { display: flex; gap: 8px; justify-content: center; margin-bottom: 6px; }
.ac-code input {
    width: 48px; height: 58px; border: 2px solid var(--gc-grey-30); border-radius: var(--gc-radius); font-family: inherit; font-size: 1.5em;
    font-weight: 700; color: var(--gc-navy); text-align: center; outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ac-code input.ac-code-whole { width: 220px; letter-spacing: 8px; }
.ac-code input:focus { border-color: var(--gc-teal); box-shadow: 0 0 0 3px rgba(78, 118, 125, 0.12); }
.ac-code-hint { font-size: 0.78em; color: var(--gc-grey-60); text-align: center; margin-bottom: 22px; }
.ac-trust { display: flex; justify-content: center; margin-top: 18px; }
.ac-alternatives { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--gc-grey-15); text-align: center; }
.ac-alternatives-label { font-size: 0.75em; font-weight: 700; color: var(--gc-grey-60); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.ac-alternatives-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* The password checklist (06) */
.ac-requirements { background: var(--gc-grey-02); border-radius: var(--gc-radius); padding: 14px 18px; margin-bottom: 24px; }
.ac-requirements-label { font-size: 0.72em; font-weight: 700; color: var(--gc-grey-60); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.ac-requirement { display: flex; align-items: center; gap: 8px; font-size: 0.82em; color: var(--gc-grey-60); padding: 3px 0; list-style: none; }
.ac-requirement i { font-size: 0.85em; width: 16px; text-align: center; color: var(--gc-grey-30); }
.ac-requirement.ac-met { color: var(--gc-success-text); }
.ac-requirement.ac-met i { color: var(--gc-success-text); }

/* Choosing a method (07) */
.ac-method {
    display: flex; align-items: flex-start; gap: 16px; padding: 22px 20px; border: 2px solid var(--gc-grey-15);
    border-radius: var(--gc-radius); cursor: pointer; transition: all 0.2s ease; position: relative;
}
.ac-method + .ac-method { margin-top: 14px; }
.ac-method:hover { border-color: var(--gc-grey-30); background: var(--gc-grey-02); }
.ac-method:has(input:checked) { border-color: var(--gc-teal); background: rgba(78, 118, 125, 0.03); }
.ac-method input { accent-color: var(--gc-teal); width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; cursor: pointer; }
.ac-method-icon { width: 48px; height: 48px; border-radius: var(--gc-radius); display: flex; align-items: center; justify-content: center; font-size: 1.2em; flex-shrink: 0; }
.ac-method-icon.ac-totp { background: rgba(78, 118, 125, 0.1); color: var(--gc-teal); }
.ac-method-icon.ac-passkey { background: rgba(41, 65, 76, 0.08); color: var(--gc-navy); }
.ac-method-title { font-size: 0.95em; font-weight: 700; color: var(--gc-navy); margin-bottom: 4px; }
.ac-method-desc { font-size: 0.82em; color: var(--gc-grey-60); line-height: 1.5; }
.ac-tag { display: inline-block; padding: 3px 8px; font-size: 0.7em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; border-radius: var(--gc-radius); margin-top: 8px; }
.ac-tag.ac-recommended { background: rgba(37, 136, 67, 0.1); color: var(--gc-success-text); }
.ac-tag.ac-modern { background: rgba(78, 118, 125, 0.1); color: var(--gc-teal); }

/* Authenticator app setup (08) */
.ac-step { margin-bottom: 28px; }
.ac-step-label { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ac-step-number { width: 26px; height: 26px; border-radius: 50%; background: var(--gc-teal); color: var(--gc-white); display: flex; align-items: center; justify-content: center; font-size: 0.78em; font-weight: 700; flex-shrink: 0; }
.ac-step-title { font-size: 0.9em; font-weight: 700; color: var(--gc-navy); }
.ac-apps { display: flex; gap: 10px; flex-wrap: wrap; }
.ac-app {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--gc-grey-02); border: 1.5px solid var(--gc-grey-15);
    border-radius: var(--gc-radius); font-size: 0.82em; font-weight: 600; color: var(--gc-navy); text-decoration: none; transition: all 0.2s ease;
}
.ac-app:hover { border-color: var(--gc-teal); background: rgba(78, 118, 125, 0.04); }
.ac-app-icon { width: 24px; height: 24px; border-radius: var(--gc-radius); display: flex; align-items: center; justify-content: center; font-size: 0.85em; color: var(--gc-white); }
.ac-app-icon.ac-ms { background: #0078d4; }
.ac-app-icon.ac-google { background: #4285f4; }
.ac-app-icon.ac-authy { background: #ec1c24; }
.ac-small-hint { font-size: 0.78em; color: var(--gc-grey-60); margin-top: 10px; line-height: 1.5; }
.ac-qr { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ac-qr-box { width: 196px; height: 196px; background: var(--gc-white); border: 2px solid var(--gc-grey-15); border-radius: var(--gc-radius); padding: 8px; }
.ac-qr-box svg { width: 100%; height: 100%; display: block; }
.ac-key details { width: 100%; text-align: center; }
.ac-key summary { color: var(--gc-teal); font-size: 0.82em; font-weight: 600; cursor: pointer; list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.ac-key summary::-webkit-details-marker { display: none; }
.ac-key summary:hover { text-decoration: underline; }
.ac-key-box { margin-top: 12px; background: var(--gc-grey-02); border: 1.5px dashed var(--gc-grey-30); border-radius: var(--gc-radius); padding: 14px 18px; }
.ac-key-label { font-size: 0.72em; font-weight: 700; color: var(--gc-grey-60); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.ac-key-value { font-family: 'Courier New', monospace; font-size: 0.95em; font-weight: 700; color: var(--gc-navy); letter-spacing: 2px; word-break: break-all; }

/* Recovery codes (Done) */
.ac-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; background: var(--gc-grey-02); border-radius: var(--gc-radius); padding: 16px 20px; margin-bottom: 18px; }
.ac-codes code { font-family: 'Courier New', monospace; font-size: 0.95em; font-weight: 700; color: var(--gc-navy); letter-spacing: 1px; text-align: center; }

/* The steps along the bottom (06-09) */
.ac-steps { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 20px 40px; border-top: 1px solid var(--gc-grey-15); list-style: none; flex-wrap: wrap; }
.ac-steps li { display: flex; align-items: center; gap: 6px; font-size: 0.75em; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gc-grey-60); }
.ac-steps .ac-dot { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9em; font-weight: 700; background: var(--gc-grey-15); color: var(--gc-grey-60); }
.ac-steps li.ac-current { color: var(--gc-teal); }
.ac-steps li.ac-current .ac-dot { background: var(--gc-teal); color: var(--gc-white); }
.ac-steps li.ac-done { color: var(--gc-success-text); }
.ac-steps li.ac-done .ac-dot { background: var(--gc-success); color: var(--gc-white); }
.ac-steps .ac-line { width: 30px; height: 2px; background: var(--gc-grey-15); }
.ac-steps .ac-line.ac-done { background: var(--gc-success); }

.ac-help { text-align: center; padding: 0 40px 26px; font-size: 0.78em; color: var(--gc-grey-60); }
.ac-split .ac-help { padding: 0; margin-top: 28px; }
.ac-help a { color: var(--gc-teal); text-decoration: none; font-weight: 600; }
.ac-help a:hover { text-decoration: underline; }

/* Session expired (12) */
.ac-plain { text-align: center; padding: 50px 50px 40px; }
.ac-plain h1 { font-size: 1.2em; font-weight: 900; color: var(--gc-navy); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.ac-plain p { font-size: 0.88em; color: var(--gc-grey-60); line-height: 1.6; margin-bottom: 28px; }
.ac-logo-footer { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--gc-grey-15); }
.ac-logo-footer img { height: 24px; opacity: 0.35; }

@media (max-width: 640px) {
    .ac-split { flex-direction: column; max-width: 420px; }
    .ac-brand { min-width: unset; padding: 26px 20px; flex-direction: row; gap: 14px; }
    .ac-brand img { height: 36px; }
    .ac-brand .ac-brand-subtitle { margin-top: 0; }
    .ac-split-body { padding: 30px 24px; }
}

@media (max-width: 500px) {
    .ac-card-body { padding: 28px 22px; }
    .ac-brand-header { padding: 22px 24px; }
    .ac-steps { padding: 16px 20px; }
    .ac-help { padding: 0 22px 24px; }
    .ac-plain { padding: 40px 24px 32px; }
    .ac-code { gap: 6px; }
    .ac-code input { width: 42px; height: 50px; font-size: 1.3em; }
    .ac-apps { flex-direction: column; }
    .ac-codes { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .ac-btn, .ac-choice, .ac-btn-outline { transition: none; }
    .ac-btn:hover, .ac-choice:hover { transform: none; }
}
