:root {
    --authority-black: #050505;
    --authority-panel: #0b0b0b;
    --authority-panel-soft: #111111;
    --authority-gold: #d4af37;
    --authority-gold-soft: rgba(212, 175, 55, 0.28);
    --authority-gold-faint: rgba(212, 175, 55, 0.08);
    --authority-text: #f5f1e7;
    --authority-muted: #b8ae91;
    --authority-danger: #ff6b6b;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    background:
        radial-gradient(
            circle at top,
            rgba(212, 175, 55, 0.08),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            #080808 0%,
            #020202 100%
        );

    color: var(--authority-text);
}

.authority-access-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px 24px;
}

.authority-access-gateway {
    width: min(100%, 980px);

    padding: 38px 42px 34px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.018),
            rgba(212, 175, 55, 0.018)
        ),
        var(--authority-panel);

    border: 1px solid var(--authority-gold-soft);
    border-radius: 24px;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.48),
        inset 0 0 0 1px rgba(255, 255, 255, 0.01);
}

.authority-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 34px;

    color: var(--authority-gold);
    text-decoration: none;

    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.authority-back-link:hover {
    opacity: 0.88;
}

.authority-access-header {
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.authority-eyebrow {
    margin: 0 0 12px;

    color: var(--authority-gold);

    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.authority-access-header h1 {
    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(2.3rem, 5vw, 4.6rem);
    line-height: 0.98;

    color: #f3d66b;
}

.authority-intro {
    max-width: 760px;

    margin: 22px 0 0;

    color: var(--authority-muted);

    font-size: 1.02rem;
    line-height: 1.7;
}

.authority-login-form {
    margin-top: 34px;
}

.authority-field {
    margin-bottom: 24px;
}

.authority-field label {
    display: block;

    margin-bottom: 10px;

    color: #f3d66b;

    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.authority-field input {
    width: 100%;
    min-height: 58px;

    padding: 0 18px;

    border: 1px solid rgba(212, 175, 55, 0.30);
    border-radius: 14px;

    background: var(--authority-panel-soft);
    color: #ffffff;

    font: inherit;
    font-size: 1rem;

    outline: none;

    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.authority-field input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.authority-field input:focus {
    border-color: rgba(212, 175, 55, 0.82);

    box-shadow:
        0 0 0 3px rgba(212, 175, 55, 0.08);

    background: #141414;
}

.authority-password-wrap {
    position: relative;
}

.authority-password-wrap input {
    padding-right: 64px;
}

.authority-password-toggle {
    position: absolute;

    top: 50%;
    right: 12px;

    transform: translateY(-50%);

    width: 42px;
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.32);
    color: var(--authority-gold);

    cursor: pointer;

    font-size: 1rem;
}

.authority-password-toggle:hover {
    background: rgba(212, 175, 55, 0.06);
}

.authority-login-message {
    min-height: 24px;
    margin: 4px 0 16px;

    color: var(--authority-danger);

    font-size: 0.9rem;
    line-height: 1.5;
}

.authority-enter-button {
    width: 100%;
    min-height: 60px;

    border: 1px solid var(--authority-gold);
    border-radius: 999px;

    background:
        linear-gradient(
            180deg,
            #e2c14c,
            #c8a62c
        );

    color: #050505;

    cursor: pointer;

    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.11em;

    transition:
        transform 160ms ease,
        filter 160ms ease,
        box-shadow 160ms ease;
}

.authority-enter-button:hover {
    filter: brightness(1.06);

    box-shadow:
        0 14px 34px rgba(212, 175, 55, 0.14);
}

.authority-enter-button:active {
    transform: translateY(1px);
}

.authority-access-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-top: 34px;
    padding-top: 24px;

    border-top: 1px solid rgba(212, 175, 55, 0.18);

    color: var(--authority-muted);

    font-size: 0.76rem;
    letter-spacing: 0.09em;
}

.authority-access-footer strong {
    color: var(--authority-gold);
    letter-spacing: 0.16em;
}

@media (max-width: 700px) {
    .authority-access-page {
        align-items: flex-start;
        padding: 20px 14px;
    }

    .authority-access-gateway {
        padding: 26px 20px 24px;
        border-radius: 18px;
    }

    .authority-back-link {
        margin-bottom: 26px;
    }

    .authority-access-header h1 {
        font-size: clamp(2rem, 12vw, 3.2rem);
    }

    .authority-intro {
        font-size: 0.95rem;
    }

    .authority-field input {
        min-height: 56px;
        font-size: 16px;
    }

    .authority-access-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}
/* =========================================================
   GCCSS–THETA CONSTITUTIONAL AUTHORITY CHAMBER
   ARCHITECTURAL OVERRIDE
   ========================================================= */

body {
    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(20, 72, 150, 0.20),
            transparent 38%
        ),
        linear-gradient(
            180deg,
            #02050a 0%,
            #050505 45%,
            #010101 100%
        );
}

/* Whole institutional frame */
.authority-access-gateway {
    position: relative;
    overflow: hidden;

    width: min(100%, 1080px);

    padding: 0 54px 38px;

    border-radius: 4px;

    border:
        1px solid rgba(212, 175, 55, 0.82);

    background:
        linear-gradient(
            180deg,
            rgba(14, 21, 32, 0.98),
            rgba(5, 6, 8, 0.99) 32%,
            rgba(3, 3, 3, 1) 100%
        );

    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.75),
        0 0 0 4px rgba(212, 175, 55, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

/* Gold command bar across top */
.authority-access-gateway::before {
    content:
        "EQUESTRIAN ORDER OF THE CREOLE CROWN  •  CONSTITUTIONAL AUTHORITY";

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    margin: 0 -54px 34px;

    padding: 0 24px;

    background:
        linear-gradient(
            90deg,
            #070707,
            #14100a 35%,
            #211808 50%,
            #14100a 65%,
            #070707
        );

    border-bottom:
        1px solid rgba(212, 175, 55, 0.72);

    color: #e6c64c;

    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.20em;

    text-align: center;
}

/* Architectural inner line */
.authority-access-gateway::after {
    content: "";

    position: absolute;
    inset: 8px;

    pointer-events: none;

    border:
        1px solid rgba(212, 175, 55, 0.14);
}

/* Palace return */
.authority-back-link {
    position: relative;
    z-index: 2;

    margin-bottom: 42px;

    padding: 10px 14px;

    border-left:
        3px solid #d4af37;

    color: #e3c350;

    font-size: 0.72rem;
    letter-spacing: 0.16em;
}

/* Header becomes institutional rather than promotional */
.authority-access-header {
    position: relative;
    z-index: 2;

    padding:
        0 0 34px;

    border-bottom:
        1px solid rgba(212, 175, 55, 0.30);
}

.authority-eyebrow {
    display: inline-flex;

    margin-bottom: 18px;

    padding:
        7px 12px;

    background:
        rgba(212, 175, 55, 0.07);

    border:
        1px solid rgba(212, 175, 55, 0.24);

    color: #e5c653;

    font-size: 0.72rem;
    letter-spacing: 0.20em;
}

/* Less oversized, more commanding */
.authority-access-header h1 {
    max-width: 850px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(2.8rem, 5vw, 4.5rem);

    line-height: 0.98;

    letter-spacing: -0.025em;

    color: #f0d05b;

    text-shadow:
        0 2px 0 rgba(0, 0, 0, 0.75);
}

.authority-intro {
    max-width: 800px;

    color: #bcb49d;

    font-size: 1rem;
    line-height: 1.8;
}

/* Form now looks like an access console */
.authority-login-form {
    position: relative;
    z-index: 2;

    margin-top: 34px;

    padding:
        30px 32px 32px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.015),
            rgba(0, 0, 0, 0.20)
        );

    border:
        1px solid rgba(212, 175, 55, 0.18);
}

.authority-field label {
    margin-bottom: 9px;

    color: #dfc153;

    font-size: 0.78rem;
    font-weight: 900;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.authority-field input {
    min-height: 62px;

    border-radius: 3px;

    border:
        1px solid rgba(212, 175, 55, 0.36);

    background:
        linear-gradient(
            180deg,
            #090d13,
            #050608
        );

    color: #ffffff;

    box-shadow:
        inset 4px 0 0 rgba(212, 175, 55, 0.20);
}

.authority-field input:focus {
    background: #090d13;

    border-color:
        rgba(225, 193, 71, 0.92);

    box-shadow:
        inset 4px 0 0 #d4af37,
        0 0 0 2px rgba(212, 175, 55, 0.09);
}

/* Kill browser's bright autofill box */
.authority-field input:-webkit-autofill,
.authority-field input:-webkit-autofill:hover,
.authority-field input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;

    -webkit-box-shadow:
        0 0 0 1000px #090d13 inset;

    transition:
        background-color 9999s ease-out 0s;

    caret-color: #ffffff;
}

/* Eye becomes a proper control */
.authority-password-toggle {
    width: 44px;
    height: 44px;

    border-radius: 3px;

    border:
        1px solid rgba(212, 175, 55, 0.45);

    background: #080b10;

    color: #d4af37;
}

/* Command button */
.authority-enter-button {
    min-height: 64px;

    border-radius: 3px;

    background:
        linear-gradient(
            180deg,
            #e1c04c 0%,
            #b99220 100%
        );

    border:
        1px solid #f2d766;

    color: #050505;

    font-size: 0.82rem;
    font-weight: 950;

    letter-spacing: 0.18em;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        0 10px 28px rgba(0, 0, 0, 0.38);
}

.authority-enter-button:hover {
    filter: brightness(1.08);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 12px 34px rgba(212, 175, 55, 0.13);
}

/* Constitutional footer plate */
.authority-access-footer {
    position: relative;
    z-index: 2;

    margin-top: 30px;
    padding-top: 22px;

    border-top:
        1px solid rgba(212, 175, 55, 0.28);

    font-size: 0.70rem;

    letter-spacing: 0.16em;
}

.authority-access-footer strong {
    color: #e4c34d;

    font-size: 0.78rem;
    letter-spacing: 0.22em;
}

/* Mobile authority chamber */
@media (max-width: 700px) {

    .authority-access-gateway {
        padding:
            0 20px 24px;
    }

    .authority-access-gateway::before {
        margin:
            0 -20px 26px;

        min-height: 42px;

        font-size: 0.60rem;

        letter-spacing: 0.10em;
    }

    .authority-login-form {
        padding:
            22px 16px;
    }

    .authority-access-header h1 {
        font-size:
            clamp(2.25rem, 11vw, 3.25rem);
    }
}
/* =========================================================
   EOCC HERALDIC AUTHORITY STAGE
   ========================================================= */

.authority-heraldic-chamber {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 290px 1fr;
    align-items: center;
    gap: 46px;

    margin: 4px 0 42px;
    padding: 30px 34px;

    background:
        linear-gradient(
            135deg,
            rgba(212, 175, 55, 0.055),
            rgba(8, 13, 21, 0.75) 42%,
            rgba(0, 0, 0, 0.45)
        );

    border-top:
        1px solid rgba(212, 175, 55, 0.38);

    border-bottom:
        1px solid rgba(212, 175, 55, 0.38);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.018),
        inset 0 -1px 0 rgba(255, 255, 255, 0.012);
}

.authority-heraldic-chamber::before {
    content: "";

    position: absolute;
    left: 0;
    top: 18%;
    bottom: 18%;

    width: 4px;

    background:
        linear-gradient(
            180deg,
            transparent,
            #d4af37 20%,
            #f0d76a 50%,
            #d4af37 80%,
            transparent
        );
}

.authority-emblem-stage {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 250px;

    padding: 10px;

    background:
        radial-gradient(
            circle,
            rgba(212, 175, 55, 0.10),
            rgba(212, 175, 55, 0.025) 46%,
            transparent 70%
        );
}

.authority-eocc-emblem {
    display: block;

    width: 100%;
    max-width: 380px;
    height: 340px;
    transform: scale(1.45);

    object-fit: contain;

    filter:
        drop-shadow(0 12px 22px rgba(0, 0, 0, 0.72))
        drop-shadow(0 0 16px rgba(212, 175, 55, 0.10));
}

.authority-heraldic-identity {
    position: relative;

    padding-left: 32px;

    border-left:
        1px solid rgba(212, 175, 55, 0.26);
}

.authority-order-name {
    max-width: 620px;

    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    color: #f0d05b;

    font-size:
        clamp(1.7rem, 3vw, 2.8rem);

    font-weight: 700;
    line-height: 1.08;

    letter-spacing: 0.035em;
}

.authority-order-abbreviation {
    margin: 18px 0 10px;

    color: #ffffff;

    font-size: 1rem;
    font-weight: 900;

    letter-spacing: 0.42em;
}

.authority-order-office {
    display: inline-flex;

    padding: 7px 12px;

    background:
        rgba(212, 175, 55, 0.07);

    border:
        1px solid rgba(212, 175, 55, 0.28);

    color: #d9bc50;

    font-size: 0.68rem;
    font-weight: 900;

    letter-spacing: 0.20em;
}

/* Keep the EOCC emblem authoritative on smaller screens */
@media (max-width: 760px) {

    .authority-heraldic-chamber {
        grid-template-columns: 1fr;

        gap: 12px;

        padding:
            24px 18px 28px;

        text-align: center;
    }

    .authority-emblem-stage {
        min-height: auto;
    }

    .authority-eocc-emblem {
        max-width: 200px;
        margin: 0 auto;
    }

    .authority-heraldic-identity {
        padding:
            22px 0 0;

        border-left: 0;

        border-top:
            1px solid rgba(212, 175, 55, 0.24);
    }

    .authority-order-abbreviation {
        letter-spacing: 0.30em;
    }
}