/* ============================================================================
   SABONG  —  LOGIN THEME
   Premium dark casino login surface. Shared design tokens with player-theme.
   Mobile-first (375px). Scales up via min-width queries.
   Zero hardcoded colors outside of :root tokens.
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Cinzel:wght@600;700;800&display=swap');

/* ===========================================================================
   1. DESIGN TOKENS
   =========================================================================== */
:root {
    /* ----- Surface layers ----- */
    --color-bg-root:         #08080b;
    --color-bg-primary:      #0d0d12;
    --color-bg-secondary:    #14141b;
    --color-bg-tertiary:     #1c1c26;
    --color-bg-elevated:     #242431;
    --color-surface-glass:   rgba(255, 255, 255, 0.035);
    --color-surface-glass-2: rgba(255, 255, 255, 0.06);
    --color-surface-card:    rgba(20, 20, 27, 0.92);
    --color-surface-input:   rgba(13, 13, 18, 0.7);
    --color-surface-input-f: rgba(13, 13, 18, 0.95);

    /* ----- Accent (emerald) ----- */
    --color-gold:            #22c55e;
    --color-gold-bright:     #4ade80;
    --color-gold-dim:        #15803d;
    --color-gold-deep:       #0c4a23;
    --color-gold-glow:       rgba(34, 197, 94, 0.45);
    --color-gold-glow-soft:  rgba(34, 197, 94, 0.18);
    --color-gold-tint:       rgba(34, 197, 94, 0.08);
    --gradient-gold:         linear-gradient(135deg, #4ade80 0%, #22c55e 48%, #15803d 100%);
    --gradient-gold-hover:   linear-gradient(135deg, #6ee79b 0%, #34d06b 48%, #1f9d4d 100%);

    /* ----- Text ----- */
    --color-text-primary:    #f4f4f7;
    --color-text-secondary:  #b2b2bc;
    --color-text-muted:      #74747f;
    --color-text-disabled:   #4a4a53;
    --color-text-on-gold:    #04210f;

    /* ----- Borders ----- */
    --color-border:          #26262f;
    --color-border-light:    #34343f;
    --color-border-gold:     rgba(34, 197, 94, 0.32);
    --color-border-gold-strong: rgba(34, 197, 94, 0.6);

    /* ----- Feedback ----- */
    --color-success:         #2ecc71;
    --color-success-bright:  #4de084;
    --color-success-bg:      rgba(46, 204, 113, 0.14);
    --color-success-border:  rgba(46, 204, 113, 0.5);
    --color-success-text:    #d4f5e0;

    --color-danger:          #e74c3c;
    --color-danger-bright:   #ff6b5b;
    --color-danger-bg:       rgba(231, 76, 60, 0.14);
    --color-danger-border:   rgba(231, 76, 60, 0.5);
    --color-danger-text:     #ffd9d4;

    --color-warning:         #f39c12;
    --color-warning-bright:  #ffb845;
    --color-warning-bg:      rgba(243, 156, 18, 0.14);
    --color-warning-border:  rgba(243, 156, 18, 0.5);
    --color-warning-text:    #ffe6c2;

    --color-info:            #3da0e0;
    --color-info-bright:     #5cb8f0;
    --color-info-bg:         rgba(61, 160, 224, 0.14);
    --color-info-border:     rgba(61, 160, 224, 0.5);
    --color-info-text:       #cfe7f7;

    /* ----- Ambient background accents ----- */
    --color-ambient-warm:    rgba(12, 74, 35, 0.25);
    --color-ambient-gold:    rgba(34, 197, 94, 0.15);
    --color-ambient-deep:    rgba(45, 30, 10, 0.4);
    --color-ambient-mid:     #12100a;
    --color-vignette:        rgba(0, 0, 0, 0.55);

    /* ----- Validation glow ----- */
    --color-valid-glow:      rgba(46, 204, 113, 0.22);
    --color-invalid-glow:    rgba(231, 76, 60, 0.24);

    /* ----- Interaction surfaces ----- */
    --color-hover-overlay:   rgba(255, 255, 255, 0.06);
    --color-spinner-track:   rgba(26, 20, 7, 0.28);

    /* ----- Typography ----- */
    --font-display: 'Cinzel', 'Inter', Georgia, serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --fs-2xs:  0.6875rem;   /* 11 */
    --fs-xs:   0.75rem;     /* 12 */
    --fs-sm:   0.8125rem;   /* 13 */
    --fs-base: 0.9375rem;   /* 15 */
    --fs-md:   1rem;        /* 16 */
    --fs-lg:   1.125rem;    /* 18 */
    --fs-xl:   1.375rem;    /* 22 */
    --fs-2xl:  1.75rem;     /* 28 */
    --fs-3xl:  2.25rem;     /* 36 */

    /* ----- Radii ----- */
    --radius-sm:   6px;
    --radius-md:   10px;
    --radius-lg:   14px;
    --radius-xl:   20px;
    --radius-pill: 999px;

    /* ----- Shadows ----- */
    --shadow-card:
        0 28px 80px rgba(0, 0, 0, 0.7),
        0 12px 28px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --shadow-input-focus:
        0 0 0 4px var(--color-gold-glow-soft),
        0 0 22px var(--color-gold-glow-soft);
    --shadow-btn:
        0 6px 18px rgba(34, 197, 94, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    --shadow-btn-hover:
        0 12px 28px rgba(34, 197, 94, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    --shadow-icon-glow: drop-shadow(0 4px 14px var(--color-gold-glow));

    /* ----- Motion ----- */
    --transition-fast:   150ms ease;
    --transition-base:   220ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow:   400ms cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out-quart:    cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----- Red accent override — opted into via body.lg-accent-red
         (login.php and register.php both use it). */
body.lg-accent-red {
    --color-gold:            #ef4444;
    --color-gold-bright:     #f87171;
    --color-gold-dim:        #b91c1c;
    --color-gold-deep:       #4c0d0d;
    --color-gold-glow:       rgba(239, 68, 68, 0.45);
    --color-gold-glow-soft:  rgba(239, 68, 68, 0.18);
    --color-gold-tint:       rgba(239, 68, 68, 0.08);
    --gradient-gold:         linear-gradient(135deg, #f87171 0%, #ef4444 48%, #b91c1c 100%);
    --gradient-gold-hover:   linear-gradient(135deg, #fca5a5 0%, #f25555 48%, #d12626 100%);
    --color-text-on-gold:    #ffffff;
    --color-border-gold:     rgba(239, 68, 68, 0.32);
    --color-border-gold-strong: rgba(239, 68, 68, 0.6);
    --color-ambient-warm:    rgba(74, 12, 12, 0.25);
    --color-ambient-gold:    rgba(239, 68, 68, 0.15);
    --color-spinner-track:   rgba(255, 255, 255, 0.3);
    --shadow-btn:
        0 6px 18px rgba(239, 68, 68, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    --shadow-btn-hover:
        0 12px 28px rgba(239, 68, 68, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    /* Composite tokens resolve var() at :root, so they must be restated here. */
    --shadow-input-focus:
        0 0 0 4px var(--color-gold-glow-soft),
        0 0 22px var(--color-gold-glow-soft);
    --shadow-icon-glow: drop-shadow(0 4px 14px var(--color-gold-glow));
}

/* ===========================================================================
   2. BASE (reset + body)
   =========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text-primary);
    background: var(--color-bg-root);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ===========================================================================
   3. PAGE SHELL & BACKGROUND
   =========================================================================== */
.lg-page {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
    overflow: hidden;
    isolation: isolate;
}

/* Layer 1 — animated gradient field */
.lg-bg-gradient {
    position: absolute;
    inset: -10%;
    z-index: -3;
    background:
        radial-gradient(ellipse at 18% 28%, var(--color-ambient-warm) 0%, transparent 55%),
        radial-gradient(ellipse at 82% 72%, var(--color-ambient-gold) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 105%, var(--color-ambient-deep) 0%, transparent 60%),
        linear-gradient(135deg, var(--color-bg-root) 0%, var(--color-ambient-mid) 40%, var(--color-bg-primary) 100%);
    animation: lg-gradient-shift 52s ease-in-out infinite alternate;
    will-change: transform, filter;
}

@keyframes lg-gradient-shift {
    0%   { transform: translate(0, 0) scale(1);      filter: hue-rotate(0deg); }
    50%  { transform: translate(2%, -2%) scale(1.05); filter: hue-rotate(-8deg); }
    100% { transform: translate(-1%, 2%) scale(1.03); filter: hue-rotate(6deg); }
}

/* Vignette overlay */
.lg-page::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background: radial-gradient(ellipse at center, transparent 38%, var(--color-vignette) 100%);
    pointer-events: none;
}

/* Layer 2 — CSS particles */
.lg-bg-particles {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.lg-bg-particles span {
    position: absolute;
    bottom: -10px;
    width: 3px;
    height: 3px;
    background: var(--color-gold-bright);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 8px var(--color-gold-glow);
    animation: lg-float linear infinite;
    will-change: transform, opacity;
}

@keyframes lg-float {
    0%   { transform: translate3d(0, 0, 0);       opacity: 0; }
    10%  { opacity: 0.7; }
    85%  { opacity: 0.45; }
    100% { transform: translate3d(18px, -110vh, 0); opacity: 0; }
}

.lg-bg-particles span:nth-child(1)  { left: 8%;  animation-duration: 22s; animation-delay: 0s;  width: 2px; height: 2px; }
.lg-bg-particles span:nth-child(2)  { left: 18%; animation-duration: 30s; animation-delay: 4s; }
.lg-bg-particles span:nth-child(3)  { left: 28%; animation-duration: 26s; animation-delay: 8s;  width: 2px; height: 2px; }
.lg-bg-particles span:nth-child(4)  { left: 40%; animation-duration: 34s; animation-delay: 12s; }
.lg-bg-particles span:nth-child(5)  { left: 52%; animation-duration: 28s; animation-delay: 2s;  width: 2px; height: 2px; }
.lg-bg-particles span:nth-child(6)  { left: 62%; animation-duration: 32s; animation-delay: 6s; }
.lg-bg-particles span:nth-child(7)  { left: 74%; animation-duration: 24s; animation-delay: 10s; width: 2px; height: 2px; }
.lg-bg-particles span:nth-child(8)  { left: 86%; animation-duration: 30s; animation-delay: 14s; }
.lg-bg-particles span:nth-child(9)  { left: 94%; animation-duration: 26s; animation-delay: 16s; width: 2px; height: 2px; }
.lg-bg-particles span:nth-child(10),
.lg-bg-particles span:nth-child(11),
.lg-bg-particles span:nth-child(12),
.lg-bg-particles span:nth-child(13),
.lg-bg-particles span:nth-child(14) { display: none; }

/* ===========================================================================
   4. SHELL (brand + card)
   =========================================================================== */
.lg-shell {
    position: relative;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    animation: lg-shell-in 520ms var(--ease-out-quart) both;
}

@keyframes lg-shell-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===========================================================================
   5. BRAND
   =========================================================================== */
.lg-brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.lg-brand-icon {
    width: 64px;
    height: 64px;
    display: block;
    filter: var(--shadow-icon-glow);
}

.lg-brand-wordmark {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    line-height: 1;
    margin: 0;
    padding-left: 0.2em;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 2px 18px var(--color-gold-glow-soft));
}

.lg-brand-tagline {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin: 2px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.lg-brand-tagline::before,
.lg-brand-tagline::after {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--color-border-gold);
}

/* ===========================================================================
   6. CARD
   =========================================================================== */
.lg-card {
    position: relative;
    background:
        linear-gradient(180deg, var(--color-bg-tertiary) 0%, var(--color-surface-card) 100%);
    border: 1px solid var(--color-border-gold);
    border-radius: var(--radius-xl);
    padding: 30px 22px;
    box-shadow: var(--shadow-card);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
            backdrop-filter: blur(14px) saturate(130%);
    overflow: hidden;
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

/* Gold top accent line */
.lg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--color-gold-bright) 50%, transparent 100%);
    opacity: 0.85;
}

/* Faint corner glow */
.lg-card::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -40%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, var(--color-gold-tint) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.lg-card > * { position: relative; z-index: 1; }

/* Borderless, transparent card variant — used by login.php and register.php */
.lg-card.lg-card-borderless {
    border: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
}
.lg-card.lg-card-borderless::before,
.lg-card.lg-card-borderless::after { display: none; }

.lg-card-header {
    text-align: center;
    margin-bottom: 22px;
}

.lg-card-title {
    font-family: var(--font-body);
    font-size: var(--fs-xl);
    font-weight: 700;
    letter-spacing: -0.005em;
    color: var(--color-text-primary);
    margin: 0 0 6px;
}

.lg-card-subtitle {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-text-secondary);
    margin: 0;
}

/* ===========================================================================
   7. ALERTS
   =========================================================================== */
.lg-alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.45;
    margin-bottom: 18px;
    animation: lg-alert-in 260ms var(--ease-out-quart) both;
}

@keyframes lg-alert-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lg-alert-icon {
    font-size: var(--fs-lg);
    flex-shrink: 0;
    line-height: 1.2;
    margin-top: 1px;
}

.lg-alert-body { flex: 1; word-break: break-word; }

.lg-alert-close {
    background: transparent;
    border: 0;
    padding: 0;
    margin: -2px -4px 0 0;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    font-weight: 600;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: opacity var(--transition-fast), background-color var(--transition-fast);
}
.lg-alert-close:hover,
.lg-alert-close:focus-visible {
    opacity: 1;
    background: var(--color-hover-overlay);
    outline: none;
}

.lg-alert-danger {
    background: var(--color-danger-bg);
    border-color: var(--color-danger-border);
    color: var(--color-danger-text);
}
.lg-alert-danger .lg-alert-icon { color: var(--color-danger-bright); }

.lg-alert-warning {
    background: var(--color-warning-bg);
    border-color: var(--color-warning-border);
    color: var(--color-warning-text);
}
.lg-alert-warning .lg-alert-icon { color: var(--color-warning-bright); }

.lg-alert-success {
    background: var(--color-success-bg);
    border-color: var(--color-success-border);
    color: var(--color-success-text);
}
.lg-alert-success .lg-alert-icon { color: var(--color-success-bright); }

.lg-alert-info {
    background: var(--color-info-bg);
    border-color: var(--color-info-border);
    color: var(--color-info-text);
}
.lg-alert-info .lg-alert-icon { color: var(--color-info-bright); }

/* ===========================================================================
   8. FORM
   =========================================================================== */
.lg-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lg-field {
    position: relative;
    display: flex;
    align-items: stretch;
}

.lg-field-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 1.125rem;
    pointer-events: none;
    z-index: 2;
    transition: color var(--transition-base);
    line-height: 1;
}

.lg-input {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px 14px 46px;
    background: var(--color-surface-input);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    transition:
        border-color var(--transition-base),
        box-shadow var(--transition-base),
        background-color var(--transition-base);
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
}

.lg-input::placeholder {
    color: var(--color-text-muted);
    opacity: 1;
    font-weight: 400;
}

.lg-input:hover:not(:focus):not(:disabled) {
    border-color: var(--color-border-gold);
    background: var(--color-surface-input-f);
}

.lg-input:focus {
    outline: none;
    border-color: var(--color-gold);
    background: var(--color-surface-input-f);
    box-shadow: var(--shadow-input-focus);
}

.lg-field:focus-within .lg-field-icon {
    color: var(--color-gold-bright);
}

/* Validation states — reused by existing blur-validation JS */
.lg-input.is-valid {
    border-color: var(--color-success);
}
.lg-input.is-valid:focus {
    box-shadow: 0 0 0 4px var(--color-valid-glow);
}
.lg-input.is-invalid {
    border-color: var(--color-danger);
}
.lg-input.is-invalid:focus {
    box-shadow: 0 0 0 4px var(--color-invalid-glow);
}
/* Red-accent pages: no green "valid" border — a filled field keeps the
   neutral border (and the accent focus ring while focused). */
body.lg-accent-red .lg-input.is-valid {
    border-color: var(--color-border-light);
}
body.lg-accent-red .lg-input.is-valid:focus {
    border-color: var(--color-gold);
    box-shadow: var(--shadow-input-focus);
}

/* Autofill */
.lg-input:-webkit-autofill,
.lg-input:-webkit-autofill:focus,
.lg-input:-webkit-autofill:hover {
    -webkit-box-shadow: 0 0 0 1000px var(--color-surface-input-f) inset;
    -webkit-text-fill-color: var(--color-text-primary);
    caret-color: var(--color-text-primary);
    border-color: var(--color-border-gold);
}

.lg-input.has-toggle { padding-right: 54px; }

/* Password show/hide toggle */
.lg-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    padding: 0;
    color: var(--color-text-muted);
    font-size: 1.125rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    z-index: 2;
    transition: color var(--transition-fast), background-color var(--transition-fast);
}
.lg-toggle:hover { color: var(--color-gold-bright); }
.lg-toggle:focus-visible {
    outline: none;
    color: var(--color-gold-bright);
    background: var(--color-gold-glow-soft);
}

/* ===========================================================================
   9. BUTTON
   =========================================================================== */
.lg-btn {
    width: 100%;
    min-height: 54px;
    padding: 14px 24px;
    margin-top: 6px;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--gradient-gold);
    color: var(--color-text-on-gold);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: var(--shadow-btn);
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        filter var(--transition-fast),
        background var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.lg-btn:hover:not(:disabled) {
    background: var(--gradient-gold-hover);
    filter: brightness(1.04);
    box-shadow: var(--shadow-btn-hover);
    transform: translateY(-1px);
}

.lg-btn:active:not(:disabled) {
    transform: translateY(0);
    filter: brightness(0.96);
    box-shadow: var(--shadow-btn);
}

.lg-btn:focus-visible {
    outline: none;
    box-shadow: var(--shadow-btn-hover), 0 0 0 3px var(--color-gold-glow);
}

.lg-btn:disabled {
    cursor: wait;
    opacity: 0.85;
    transform: none;
}

.lg-btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-spinner-track);
    border-top-color: var(--color-text-on-gold);
    border-radius: 50%;
    animation: lg-spin 680ms linear infinite;
    display: inline-block;
    flex-shrink: 0;
}

.lg-btn-spinner.d-none { display: none; }

@keyframes lg-spin { to { transform: rotate(360deg); } }

/* ===========================================================================
   9b. CAPS LOCK WARNING
   =========================================================================== */
.lg-caps-warn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin: -4px 0 0 2px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    background: var(--color-warning-bg);
    border: 1px solid var(--color-warning-border);
    color: var(--color-warning-text);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1;
    animation: lg-caps-in 180ms var(--ease-out-quart) both;
}
.lg-caps-warn[hidden] { display: none; }
.lg-caps-warn i { color: var(--color-warning-bright); font-size: 0.95rem; }

@keyframes lg-caps-in {
    from { opacity: 0; transform: translateY(-3px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===========================================================================
   10. FOOTER HINT
   =========================================================================== */
.lg-footer {
    margin: 20px 0 0;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-text-secondary);
    line-height: 1.55;
}

.lg-footer strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

/* ===========================================================================
   10b. SECURE CONNECTION CHIP
   =========================================================================== */
.lg-secure {
    margin: 18px auto 0;
    display: flex;
    width: -moz-fit-content;
    width: fit-content;
    align-items: center;
    gap: 7px;
    padding: 5px 12px 5px 10px;
    border-radius: 999px;
    background: var(--color-gold-tint);
    border: 1px solid var(--color-border-gold);
    color: var(--color-text-secondary);
    font-size: var(--fs-2xs);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
}
.lg-secure i {
    color: var(--color-gold-bright);
    font-size: 0.85rem;
    line-height: 1;
}

@media (max-width: 767.98px) {
    .lg-secure { font-size: 10px; }

    /* Login page only: edge-to-edge on phones (no side gutters) */
    .lg-page.lg-page-flush            { padding-left: 0; padding-right: 0; }
    .lg-page.lg-page-flush .lg-shell  { max-width: none; }
    .lg-page.lg-page-flush .lg-card   { padding-left: 0; padding-right: 0; }
}

/* ===========================================================================
   11. TABLET (>= 768px)
   =========================================================================== */
@media (min-width: 768px) {
    .lg-page      { padding: 40px 24px; }
    .lg-shell     { max-width: 460px; gap: 26px; }
    .lg-card      { padding: 40px 36px; }
    .lg-card-header { margin-bottom: 26px; }
    .lg-brand-icon { width: 72px; height: 72px; }
    .lg-brand-wordmark { font-size: 2rem; }
    .lg-card-title { font-size: 1.4rem; }
    .lg-form      { gap: 16px; }
}

/* ===========================================================================
   12. DESKTOP (>= 1280px)
   =========================================================================== */
@media (min-width: 1280px) {
    .lg-shell       { max-width: 480px; gap: 30px; }
    .lg-card        { padding: 44px 40px; }
    .lg-brand-icon  { width: 80px; height: 80px; }
    .lg-brand-wordmark { font-size: 2.25rem; }
    .lg-card:hover  { transform: translateY(-2px); }

    /* Richer particle field on desktop */
    .lg-bg-particles span:nth-child(10) {
        display: block; left: 12%; animation: lg-float linear infinite;
        animation-duration: 28s; animation-delay: 3s; width: 2px; height: 2px;
    }
    .lg-bg-particles span:nth-child(11) {
        display: block; left: 34%; animation: lg-float linear infinite;
        animation-duration: 34s; animation-delay: 9s;
    }
    .lg-bg-particles span:nth-child(12) {
        display: block; left: 48%; animation: lg-float linear infinite;
        animation-duration: 26s; animation-delay: 15s; width: 2px; height: 2px;
    }
    .lg-bg-particles span:nth-child(13) {
        display: block; left: 68%; animation: lg-float linear infinite;
        animation-duration: 32s; animation-delay: 5s;
    }
    .lg-bg-particles span:nth-child(14) {
        display: block; left: 82%; animation: lg-float linear infinite;
        animation-duration: 28s; animation-delay: 11s; width: 2px; height: 2px;
    }
}

/* ===========================================================================
   13. REDUCED MOTION
   =========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .lg-bg-gradient,
    .lg-bg-particles span,
    .lg-shell,
    .lg-alert,
    .lg-btn-spinner {
        animation: none !important;
    }
    .lg-bg-particles { display: none; }
    .lg-card,
    .lg-btn,
    .lg-input,
    .lg-field-icon,
    .lg-toggle,
    .lg-alert-close {
        transition: none !important;
    }
    .lg-btn:hover:not(:disabled),
    .lg-card:hover {
        transform: none;
    }
    .lg-btn-spinner {
        border: 2px solid var(--color-text-on-gold);
        background: transparent;
    }
}

/* ===========================================================================
   14. LOGIN + REGISTER TOP SPACING (2026-10-08) — logo sits 25px from the
   top on every screen size (no vertical centering, no card top padding).
   =========================================================================== */
.lg-page.lg-page-top              { padding-top: 25px; align-items: flex-start; }
.lg-page.lg-page-top .lg-card     { padding-top: 0; }

/* ===========================================================================
   15. LOGO SHINE (2026-10-08) — pastel-red sweep, same motion as the player-home promo
   cards; driven by /js/logo-shine.js. The resting position has no transition,
   so removing .is-sweep snaps the shine back off-screen left.
   =========================================================================== */
.lg-logo-shine {
    position: relative;
    overflow: hidden;
    margin: 0 0 1rem;
}
.lg-logo-shine::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 20%;
    background: linear-gradient(100deg,
        rgba(255, 138, 138, 0) 0%,
        rgba(255, 138, 138, 0.7) 50%,
        rgba(255, 138, 138, 0) 100%);   /* pastel red #ff8a8a */
    transform: translateX(-200%) skewX(-18deg);
    pointer-events: none;
}
.lg-logo-shine.is-sweep::after {
    transform: translateX(620%) skewX(-18deg);
    transition: transform 1s ease-in-out;
}
