/* Entry screens: index (start), login, register.
   Same look as the player dashboard: the dashboard artwork behind a vignette,
   gold-trimmed dark panels, Georgia, gold uppercase headings (dashboard.css
   sets the --rf-* tokens for in-game pages; they are repeated here because
   these pages do not load it). */

:root {
    --rf-gold: #d5a85a;
    --rf-gold-soft: rgba(213, 168, 90, 0.55);
    --rf-gold-text: #f7d98d;
    --rf-cream: #f6ead0;
    --rf-panel: rgba(5, 10, 16, 0.78);
}

body {
    background: #050912;
}

.entry {
    position: relative;
    z-index: 0;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: clamp(16px, 3vh, 40px) 16px clamp(24px, 4vh, 48px);
    color: var(--rf-cream);
    font-family: Georgia, 'Times New Roman', serif;
}

/* Artwork + the dashboard's vignette, fixed behind everything. */
.entry-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    user-select: none;
    pointer-events: none;
}

.entry-veil {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at center, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.3) 54%, rgba(0,0,0,0.7) 100%),
        linear-gradient(to bottom, rgba(0,0,0,0.3), transparent 20%, rgba(0,0,0,0.66) 100%);
}

/* The logo artwork carries a lot of transparent padding; negative margins
   pull the panel up under the crest. */
.entry-logo-link {
    display: block;
    line-height: 0;
    margin: -3vh 0 -3vh;
}

.entry-logo {
    width: min(500px, 78vw);
    height: auto;
    filter:
        drop-shadow(0 6px 14px rgba(0,0,0,0.85))
        drop-shadow(0 0 26px rgba(86,184,255,0.22));
}

.entry-start .entry-logo {
    width: min(760px, 92vw);
}

/* ---- the panel ---------------------------------------------------------- */
.entry-panel {
    position: relative;
    width: min(460px, 100%);
    padding: clamp(24px, 4vw, 36px) clamp(20px, 4vw, 36px) clamp(22px, 3vw, 30px);
    background: linear-gradient(180deg, rgba(5,10,16,0.88), rgba(5,10,16,0.74));
    border: 1px solid var(--rf-gold-soft);
    border-radius: 14px;
    box-shadow:
        0 18px 40px rgba(0,0,0,0.6),
        inset 0 0 28px rgba(213,168,90,0.06);
    backdrop-filter: blur(6px);
}

.entry-start .entry-panel {
    width: min(680px, 100%);
    text-align: center;
}

/* Gold corner brackets, like a framed plaque. */
.entry-panel::before,
.entry-panel::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    border: 2px solid var(--rf-gold);
    pointer-events: none;
    opacity: 0.9;
}

.entry-panel::before {
    top: -4px;
    left: -4px;
    border-right: 0;
    border-bottom: 0;
    border-top-left-radius: 10px;
}

.entry-panel::after {
    right: -4px;
    bottom: -4px;
    border-left: 0;
    border-top: 0;
    border-bottom-right-radius: 10px;
}

.entry-title {
    margin: 0;
    text-align: center;
    color: var(--rf-gold-text);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-shadow:
        0 2px 4px #000,
        0 0 18px rgba(213,168,90,0.35);
}

.entry-sub {
    margin: 8px 0 0;
    text-align: center;
    color: rgba(246,234,208,0.82);
    font-size: 15px;
    font-style: italic;
}

/* A rule with a diamond, under the heading. */
.entry-rule {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 6px;
    color: var(--rf-gold);
    font-size: 11px;
}

.entry-rule::before,
.entry-rule::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--rf-gold-soft), transparent);
}

/* ---- the form ----------------------------------------------------------- */
.entry-form label {
    display: block;
    margin: 16px 0 6px;
    color: var(--rf-gold-text);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.entry-form input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(213,168,90,0.35);
    background: rgba(8,12,22,0.78);
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.entry-form input:focus {
    outline: none;
    border-color: var(--rf-gold);
    box-shadow:
        0 0 0 3px rgba(213,168,90,0.16),
        0 0 14px rgba(213,168,90,0.35);
}

.entry-form input::placeholder {
    color: rgba(246,234,208,0.4);
}

.entry-form .entry-button {
    width: 100%;
    margin-top: 24px;
}

/* Notices inherit .error/.success from styles.css; just give them room. */
.entry-panel .error,
.entry-panel .success {
    margin: 16px 0 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.entry-note {
    margin: 16px 0 0;
    color: rgba(246,234,208,0.88);
    font-size: 15px;
    line-height: 1.5;
}

.entry-note strong {
    color: var(--rf-gold-text);
}

/* ---- buttons ------------------------------------------------------------ */
.entry-button {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 10px;
    border: 1px solid rgba(255,230,170,0.6);
    background: linear-gradient(180deg, #ecc97f 0%, #d5a85a 55%, #b07f33 100%);
    color: #1a1206;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    box-shadow:
        0 8px 18px rgba(0,0,0,0.45),
        0 0 16px rgba(213,168,90,0.35),
        inset 0 1px 0 rgba(255,255,255,0.35);
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.entry-button:hover,
.entry-button:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow:
        0 10px 22px rgba(0,0,0,0.5),
        0 0 22px rgba(213,168,90,0.55),
        inset 0 1px 0 rgba(255,255,255,0.35);
}

.entry-button.secondary {
    background: linear-gradient(180deg, rgba(5,10,16,0.78), rgba(5,10,16,0.56));
    border-color: var(--rf-gold-soft);
    color: var(--rf-cream);
    text-shadow: 0 2px 6px rgba(0,0,0,0.85);
    box-shadow: 0 8px 18px rgba(0,0,0,0.45);
}

.entry-button.secondary:hover,
.entry-button.secondary:focus-visible {
    color: #ffe9b0;
    border-color: var(--rf-gold);
    box-shadow:
        0 10px 22px rgba(0,0,0,0.5),
        0 0 14px rgba(213,168,90,0.45);
}

.entry-links {
    margin: 20px 0 0;
    text-align: center;
    color: rgba(246,234,208,0.8);
    font-size: 15px;
}

.entry-links a {
    color: var(--rf-gold-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.entry-links a:hover {
    color: #ffe9b0;
}

/* ---- "Continue with Google" (includes/google-signin-button.php) ---------- */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 16px;
    color: rgba(246,234,208,0.6);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(213,168,90,0.3);
}

.google-signin {
    display: flex;
    justify-content: center;
    min-height: 44px;
}

.google-signin iframe {
    max-width: 100%;
}

/* ---- the start screen --------------------------------------------------- */
.entry-tagline {
    margin: 0;
    color: var(--rf-gold-text);
    font-size: clamp(15px, 1.8vw, 20px);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-shadow: 0 2px 4px #000, 0 0 14px rgba(213,168,90,0.3);
}

.entry-lore {
    margin: 14px auto 0;
    max-width: 520px;
    color: rgba(246,234,208,0.85);
    font-size: clamp(15px, 1.5vw, 18px);
    font-style: italic;
    line-height: 1.55;
}

.entry-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 26px;
}

.entry-actions .entry-button {
    min-width: 190px;
}

/* ---- phones ------------------------------------------------------------- */
@media (max-width: 600px) {
    .entry {
        justify-content: flex-start;
        padding-top: 0;
    }

    .entry-logo-link {
        margin: 0 0 -5vh;
    }

    .entry-logo,
    .entry-start .entry-logo {
        width: min(420px, 96vw);
    }

    .entry-panel {
        padding: 22px 18px 20px;
    }

    .entry-actions {
        flex-direction: column;
        gap: 12px;
    }

    .entry-actions .entry-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .entry-button {
        transition: none;
    }
}
