/**
 * assets/css/auth.css
 *
 * login.php / register.php only — a "bento grid" mosaic of boxes, built to
 * a specific supplied mockup (warm amber/cream, Outfit font, rounded-2rem
 * cards). Deliberately a fixed standalone palette, not the site's --color-*
 * theme system: same reasoning battle.css is its own file for — a
 * self-contained visual world these 2 pages alone render.
 */

.bento-body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: #fffbeb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif;
}

.bento-grid {
    width: 100%;
    max-width: 72rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, 1fr));
    }

    .bento-welcome {
        grid-column: span 2 / span 2;
    }

    .bento-form-box {
        grid-column: span 2 / span 2;
        grid-row: span 2 / span 2;
    }
}

.bento-box {
    background: #fff;
    border-radius: 2rem;
    border: 1px solid #fef3c7;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

/* --------------------------------- Welcome / stats box --------------------------------- */

.bento-welcome {
    justify-content: space-between;
}

.bento-welcome h1 {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
    color: #78350f;
    margin: 0 0 8px;
}

.bento-welcome-intro p {
    color: #b45309;
    margin: 0;
}

.bento-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.bento-stat-value {
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 700;
    color: #f59e0b;
    margin: 0;
}

.bento-stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    margin: 4px 0 0;
}

/* --------------------------------- Form box --------------------------------- */

.bento-form-box {
    padding: 2.5rem;
    border-color: #fffbeb;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    justify-content: center;
}

.bento-form-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.bento-form-icon img {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    image-rendering: pixelated;
}

.bento-form-box h2 {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    text-align: center;
    color: #1f2937;
    margin: 0 0 2rem;
}

.bento-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.bento-form .form-error {
    display: none;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 0.75rem;
    padding: 10px 14px;
    font-size: 0.85rem;
}

.bento-form .form-error.visible {
    display: block;
}

.bento-input {
    width: 100%;
    box-sizing: border-box;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    font-family: inherit;
    font-size: 1rem;
    color: #1f2937;
}

.bento-input::placeholder {
    color: #9ca3af;
}

.bento-input:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #fbbf24;
    border-color: transparent;
}

.bento-field-hint {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: -0.75rem;
}

.bento-btn {
    width: 100%;
    background: #fbbf24;
    color: #78350f;
    font-weight: 700;
    font-family: inherit;
    font-size: 1rem;
    padding: 1rem;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(217, 119, 6, 0.2), 0 2px 4px -2px rgba(217, 119, 6, 0.12);
    transition: background-color 0.15s ease;
    margin-top: 4px;
}

.bento-btn:hover {
    background: #f59e0b;
}

.bento-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.bento-btn-link {
    display: block;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
}

.bento-closed-message {
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0 0 1.25rem;
}

.bento-switch {
    text-align: center;
    margin: 16px 0 0;
    font-size: 0.85rem;
    color: #9ca3af;
}

.bento-switch a {
    color: #b45309;
    font-weight: 700;
    text-decoration: underline;
}

/* --------------------------------- Top Player mini box --------------------------------- */

.bento-top-player {
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
}

.bento-top-player img {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    image-rendering: pixelated;
    margin-bottom: 8px;
}

.bento-top-player-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    font-weight: 700;
    color: #9ca3af;
    margin: 0;
}

.bento-top-player-cp {
    font-weight: 700;
    color: #1f2937;
    margin: 4px 0 0;
}

/* --------------------------------- Dark CTA mini box --------------------------------- */

.bento-cta {
    background: #111827;
    border-color: #1f2937;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
}

.bento-cta img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    image-rendering: pixelated;
    margin-bottom: 12px;
}

.bento-cta-title {
    color: #fff;
    font-weight: 700;
    margin: 0 0 4px;
}

.bento-cta-link {
    color: #fbbf24;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
}

.bento-cta-link:hover {
    color: #fcd34d;
}

/* Registration-closed state (config.php's REGISTRATION_OPEN) — same box,
   just not a link, and the accent text dims instead of inviting a click. */
.bento-cta-closed {
    cursor: default;
}

.bento-cta-closed .bento-cta-link {
    color: #6b7280;
}

@media (max-width: 480px) {
    .bento-body {
        padding: 14px;
    }

    .bento-box {
        padding: 1.5rem;
    }

    .bento-form-box {
        padding: 1.75rem;
    }
}
