/*
  PRISMS JUDGING PORTAL — SIGN-IN + AUTH PAGES
  Standalone pages (no layout). Loads its own palette tokens.
*/

/* ═══════════════════════════════════════════════════════════
   TOKENS (duplicated from palette so standalone pages work)
   ═══════════════════════════════════════════════════════════ */
:root {
    --Background-Dark-1:      #0d0820;
    --Background-Dark-2:      #170c38;
    --Background-Flat:        #100925;
    --Background-Light-1:     #11073d;
    --Background-Light-2:     #251a51;
    --border-faint:           #1a1248;
    --border-default:         #241c68;
    --border-strong:          #342080;
    --text-body:              #e9dcc3;
    --text-warm:              #d4c5bb;
    --text-ghost:             #c7b4ff;
    --text-dimmed:            #524090;
    --gold-dark:              #ffac39;
    --gold-mid-dark:          #8a6b3f;
    --gold-mid:               #a98c61;
    --gold-mid-rgb:           169, 140, 97;
    --gold:                   #cdb572;
    --gold-rgb:               205, 181, 114;
    --gold-warm:              #cdbb88;
    --gold-bright:            #dbc68f;
    --gold-pale:              #efdda5;
    --gold-pale-rgb:          239, 221, 165;
    --accent-red:             #911b3a;
    --accent-red-rgb:         145, 27, 58;
    --accent-red-light:       #d4597a;
    --Background-Dark-1-rgb:  13, 8, 32;
    --Background-Light-2-rgb: 40, 24, 104;
    --shadow-rgb:             0, 0, 0;
}

/* ═══════════════════════════════════════════════════════════
   RESET
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0; padding: 0;
    font-family: 'Gotham', Arial, sans-serif;
    background: var(--Background-Dark-1);
    color: var(--text-body);
    min-height: 100vh;
}

a { color: var(--gold-mid); text-decoration: none; }
a:hover { color: var(--gold-pale); }

/* ═══════════════════════════════════════════════════════════
   SIGN-IN PAGE LAYOUT
   ═══════════════════════════════════════════════════════════ */

.si-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.si-hero {
    position: relative;
    height: 38vh;
    min-height: 260px;
    overflow: hidden;
    flex-shrink: 0;
}

.si-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

.si-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(var(--Background-Dark-1-rgb), 0.12) 0%,
        rgba(var(--Background-Dark-1-rgb), 0.45) 72%,
        rgba(var(--Background-Dark-1-rgb), 1)   100%
    );
}

.si-hero-brand {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.si-logo {
    height: 80px;
    display: block;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.6));
}

.si-hero-title {
    font-size: 3rem;
    font-weight: bold;
    font-style: italic;
    letter-spacing: 8px;
    text-transform: uppercase;
    background: linear-gradient(to right, var(--gold-mid), var(--gold-pale));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    line-height: 1;
    text-align: center;
    margin: 0;
}

.si-hero-sub {
    font-size: 0.58rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold-dark);
    text-align: center;
}

/* ── Card ─────────────────────────────────────────────────── */

.si-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 60px;
    background: linear-gradient(to bottom, var(--Background-Dark-1) 0%, #0c0820 100%);
}

.si-card {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(160deg, var(--Background-Flat) 0%, var(--Background-Dark-2) 100%);
    border: 1px solid rgba(var(--gold-rgb), 0.1);
    border-top: 2px solid var(--gold-mid-dark);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    overflow: hidden;
}

.si-card-header {
    padding: 28px 36px 22px;
    border-bottom: 1px solid var(--border-faint);
    text-align: center;
}

.si-card-title {
    font-size: 1.4rem;
    font-weight: bold;
    font-style: italic;
    color: var(--gold-bright);
    margin: 0 0 6px;
    letter-spacing: 2px;
}

.si-card-subtitle {
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-ghost);
}

.si-card-body {
    padding: 28px 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Form fields ─────────────────────────────────────────── */

.si-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.si-label {
    font-size: 0.56rem;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--gold-mid);
    font-weight: normal;
}

.si-input {
    background: var(--Background-Dark-1);
    border: 1px solid var(--border-default);
    border-radius: 2px;
    color: var(--text-warm);
    font-family: 'Gotham', Arial, sans-serif;
    font-size: 0.88rem;
    padding: 11px 14px;
    width: 100%;
    outline: none;
    transition: border-color 0.18s;
    -webkit-appearance: none;
}
.si-input:focus { border-color: var(--gold-mid-dark); color: var(--gold-pale); }
.si-input::placeholder { color: var(--text-ghost); }

/* ── Terms checkbox ──────────────────────────────────────── */

.si-check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.si-check {
    width: 16px;
    height: 16px;
    margin-top: 1px;
    accent-color: var(--gold);
    flex-shrink: 0;
    cursor: pointer;
}

.si-check-label {
    font-size: 0.76rem;
    color: var(--text-body);
    line-height: 1.5;
    cursor: pointer;
}

.si-check-link {
    color: var(--gold-mid);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    background: none;
    border: none;
    font-family: 'Gotham', Arial, sans-serif;
    font-size: inherit;
    padding: 0;
}
.si-check-link:hover { color: var(--gold-pale); }

/* ── Message ─────────────────────────────────────────────── */

.si-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(var(--accent-red-rgb), 0.1);
    border-left: 2px solid var(--accent-red);
    border-radius: 0 2px 2px 0;
    color: var(--accent-red-light);
    font-size: 0.78rem;
    margin-bottom: 16px;
}

/* ── Sign-in button ──────────────────────────────────────── */

.si-submit-btn {
    width: 100%;
    height: 46px;
    background: var(--gold);
    color: var(--Background-Dark-1);
    border: none;
    border-radius: 2px;
    font-family: 'Gotham', Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 18px;
}
.si-submit-btn:hover { background: var(--gold-pale); }

.si-privacy {
    font-size: 0.66rem;
    letter-spacing: 1.5px;
    color: var(--text-ghost);
    text-align: center;
    font-style: italic;
}

/* ── Footer ──────────────────────────────────────────────── */

.si-footer {
    padding: 16px 28px;
    text-align: center;
    font-size: 0.54rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-ghost);
    border-top: 1px solid var(--border-faint);
    background: #0c0820;
}

/* ── Terms modal ─────────────────────────────────────────── */

.si-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}
.si-modal-overlay.open { display: flex; }

.si-modal {
    background: linear-gradient(160deg, var(--Background-Flat) 0%, var(--Background-Dark-2) 100%);
    border: 1px solid rgba(var(--gold-rgb), 0.12);
    border-top: 2px solid var(--gold-mid-dark);
    border-radius: 0 0 4px 4px;
    max-width: 520px;
    width: 92%;
    box-shadow: 0 24px 64px rgba(0,0,0,0.7);
}

.si-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px 16px;
    border-bottom: 1px solid var(--border-faint);
}

.si-modal-title {
    font-size: 0.9rem;
    font-weight: bold;
    font-style: italic;
    color: var(--gold-pale);
    margin: 0;
}

.si-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gold-dark);
    font-size: 1.2rem;
    padding: 0;
    line-height: 1;
    transition: color 0.14s;
}
.si-modal-close:hover { color: var(--gold-pale); }

.si-modal-body {
    padding: 22px 28px;
    color: var(--text-body);
    font-size: 0.86rem;
    line-height: 1.8;
    max-height: 60vh;
    overflow-y: auto;
}

.si-modal-body ul { margin: 12px 0 0; padding-left: 20px; }
.si-modal-body li { margin-bottom: 10px; }

.si-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 14px 28px;
    border-top: 1px solid var(--border-faint);
}

.si-modal-btn {
    padding: 0 28px;
    height: 38px;
    background: rgba(var(--gold-rgb), 0.06);
    border: 1px solid rgba(var(--gold-rgb), 0.2);
    border-radius: 2px;
    color: var(--gold-mid-dark);
    cursor: pointer;
    font-family: 'Gotham', Arial, sans-serif;
    font-size: 0.6rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    transition: background 0.14s, color 0.14s, border-color 0.14s;
}
.si-modal-btn:hover {
    background: rgba(var(--gold-rgb), 0.12);
    color: var(--gold-pale);
    border-color: rgba(var(--gold-rgb), 0.35);
}

/* ═══════════════════════════════════════════════════════════
   JUDGES SHOWCASE PAGE
   ═══════════════════════════════════════════════════════════ */

.jk-page {
    min-height: 100vh;
    background: var(--Background-Dark-1);
}

.jk-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 52px;
    background: linear-gradient(to right, #0d0820, #1c1050);
    border-bottom: 1px solid rgba(var(--gold-rgb), 0.08);
    box-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.jk-nav-brand {
    font-size: 1.2rem;
    font-weight: bold;
    font-style: italic;
    letter-spacing: 5px;
    text-transform: uppercase;
    background: linear-gradient(to right, var(--gold-mid), var(--gold-pale));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.jk-hero {
    position: relative;
    height: 60vh;
    min-height: 380px;
    overflow: hidden;
}

.jk-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.jk-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(var(--Background-Dark-1-rgb), 0.08) 0%,
        rgba(var(--Background-Dark-1-rgb), 0.45) 72%,
        rgba(var(--Background-Dark-1-rgb), 1)    100%
    );
}

.jk-hero-content {
    position: absolute;
    bottom: 52px;
    left: 52px;
    right: 52px;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.jk-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin: 0 0 10px;
}

.jk-hero-title {
    font-size: 5.5rem;
    font-weight: bold;
    font-style: italic;
    line-height: 0.85;
    margin: 0;
}
.jk-hero-title span:nth-child(1) { color: var(--gold-pale); display: block; }
.jk-hero-title span:nth-child(2) { color: var(--gold); display: block; }
.jk-hero-title span:nth-child(3) {
    display: block;
    font-size: 1.8rem;
    font-weight: normal;
    letter-spacing: 4px;
    color: var(--gold-mid);
    margin-top: 12px;
}

/* Section divider */
.jk-section {
    padding: 60px 52px 80px;
}

.jk-section-header {
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-faint);
}

.jk-section-header::before {
    content: '';
    position: absolute;
    bottom: -1px; left: 0;
    width: 52px; height: 2px;
    background: linear-gradient(to right, var(--gold-dark), var(--gold-mid));
}

.jk-section-eyebrow {
    font-size: 0.58rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin: 0 0 8px;
}

.jk-section-title {
    font-size: 2.2rem;
    font-weight: bold;
    font-style: italic;
    color: var(--gold-bright);
    margin: 0;
    line-height: 1;
}

/* Judge grid */
.jk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.jk-card {
    background: var(--Background-Flat);
    border: 1px solid var(--border-faint);
    border-radius: 3px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
    text-align: center;
}

.jk-card:hover {
    border-color: rgba(var(--gold-rgb), 0.25);
    transform: translateY(-2px);
}

.jk-card-img-wrap {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--Background-Dark-2);
}

.jk-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.3s;
    filter: grayscale(20%);
}
.jk-card:hover .jk-card-img { transform: scale(1.03); }

.jk-card-body {
    padding: 14px 12px;
}

.jk-card-name {
    font-size: 0.78rem;
    font-weight: bold;
    font-style: italic;
    color: var(--gold-warm);
    margin: 0 0 4px;
    line-height: 1.2;
}

.jk-card-company {
    font-size: 0.64rem;
    color: var(--text-dimmed);
    line-height: 1.3;
    margin: 0;
}

/* Footer */
.jk-footer {
    text-align: center;
    padding: 24px 52px;
    border-top: 1px solid var(--border-faint);
    background: #0c0820;
    font-size: 0.54rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-ghost);
}

/* Responsive */
@media (max-width: 900px) {
    .jk-hero-title { font-size: 4rem; }
    .jk-hero-content { left: 36px; right: 36px; bottom: 36px; }
    .jk-section { padding: 48px 36px 64px; }
    .jk-nav { padding: 0 36px; }
}

@media (max-width: 600px) {
    .jk-hero-title { font-size: 3rem; }
    .jk-hero-content { flex-direction: column; align-items: flex-start; left: 22px; right: 22px; }
    .jk-section { padding: 36px 22px 52px; }
    .jk-nav { padding: 0 22px; }
    .jk-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
