/* =========================================================
   AUTH - SPLIT SCREEN LAYOUT
   Page-specific (loaded only by auth/login.html for now). Reuses every
   existing token from base.css (colours, spacing, radius) and every
   existing form-control class from app.css (.auth-form-group, .auth-label,
   .auth-input, .auth-check-row, .auth-check-label, .auth-divider) -
   those already work well and are still used by the other auth pages
   (register, forgot-password, ...) which have not been moved to this
   split layout yet. Nothing here redeclares those, so nothing else
   breaks when this file is added.

   The left panel is CSS-only (gradient + a dot pattern), not a photo -
   there is no such image asset in the project to use faithfully.
========================================================= */

.auth-page--split {
    display: block;
    padding: 0;
    background: var(--page-soft);
}

.auth-split {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}

/* ---- Left: decorative panel ---- */
.auth-visual {
    position: relative;
    overflow: hidden;
    background: var(--bg-gradient);
    padding: var(--space-xxl);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-visual-pattern {
    position: absolute;
    inset: 0;
    opacity: .5;
    background-image:
        radial-gradient(circle, rgba(255,255,255,.16) 1.5px, transparent 1.5px);
    background-size: 26px 26px;
    mask-image: radial-gradient(circle at 30% 70%, black, transparent 72%);
}

.auth-visual-tag {
    position: relative;
    align-self: flex-end;
    text-align: right;
    font-style: italic;
    font-weight: 700;
    font-size: clamp(20px, 2.6vw, 30px);
    line-height: 1.25;
    color: rgba(255,255,255,.92);
}

.auth-visual-foot {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.auth-visual-foot strong {
    color: #fff;
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 900;
    line-height: 1.15;
}

.auth-visual-foot span {
    color: var(--accent-on-dark, #2dd4bf);
    font-weight: 800;
    font-size: 15px;
}

/* ---- Right: the actual login panel ---- */
.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xxl) var(--space-gutter);
}

.auth-panel-inner {
    width: 100%;
    max-width: 440px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.auth-brand-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex: 0 0 auto;
}

.auth-brand h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.15;
}

.auth-brand p {
    margin: 2px 0 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}

.auth-panel-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-main);
    padding: var(--space-xl);
}

.auth-panel-card-title {
    margin: 0;
    font-size: 30px;
    font-weight: 900;
    color: var(--text-main);
}

.auth-panel-card-title span {
    color: var(--primary-color);
}

.auth-panel-card-subtitle {
    margin: 6px 0 var(--space-lg);
    color: var(--text-muted);
    font-weight: 600;
}

/* ---- Inputs with a leading icon (and a trailing show/hide for password) ---- */
.auth-input-wrap {
    position: relative;
}

.auth-input-wrap .auth-input {
    padding-left: 44px;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    pointer-events: none;
}

.auth-input-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
    line-height: 1;
}

.auth-input-wrap--password .auth-input {
    padding-right: 40px;
}

.auth-check-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.auth-forgot-link {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary-color);
}

.auth-forgot-link:hover {
    opacity: .8;
}

.auth-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: var(--space-lg);
    padding: 15px;
    border: none;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--ink), var(--forest));
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(14,116,144,.28);
    transition: transform .15s ease;
}

.auth-submit-btn:hover {
    transform: translateY(-1px);
}

.auth-secondary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 800;
}

.auth-secondary-btn:hover {
    background: var(--surface-soft);
}

.auth-sports-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
}

.auth-sports-row div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    text-align: center;
}

.auth-sports-row span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--surface-soft);
    font-size: 17px;
}

/* ---- Responsive: the visual panel is a "why join" moment for a wide
   screen only - below tablet width it would just push the actual form
   off-screen, so it drops out entirely rather than shrinking to
   nothing. ---- */
@media (max-width: 860px) {
    .auth-split {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        display: none;
    }

    .auth-panel {
        padding: var(--space-xl) var(--space-md);
    }
}

@media (max-width: 420px) {
    .auth-panel-card {
        padding: var(--space-lg);
        border-radius: var(--radius-lg);
    }

    .auth-sports-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================================
   Secondary auth pages (register, forgot/reset password, ...):
   same flat, light look as the login panel - no gradient page,
   no oversized coloured header block.
========================================================= */
.auth-page:not(.auth-page--split) {
    background: var(--page-soft);
    padding: 24px 16px;
}

.auth-page:not(.auth-page--split) .auth-container { max-width: 440px; }

.auth-page:not(.auth-page--split) .auth-card {
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 2px rgba(15, 21, 18, .06);
}

.auth-page:not(.auth-page--split) .auth-header {
    padding: 26px 24px 8px;
    background: transparent;
    color: var(--text-main);
}

.auth-page:not(.auth-page--split) .auth-logo-mark {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--color-primary-soft, #dff3f7);
}

.auth-page:not(.auth-page--split) .auth-logo-mark img { width: 44px; height: 44px; }

.auth-page:not(.auth-page--split) .auth-header h1 { font-size: 24px; color: var(--text-main); }
.auth-page:not(.auth-page--split) .auth-header p { color: var(--text-muted); opacity: 1; }

.auth-page:not(.auth-page--split) .auth-body { padding: 18px 24px 24px; }
.auth-page:not(.auth-page--split) .auth-form-group { margin-bottom: 16px; }
.auth-page:not(.auth-page--split) .auth-footer { padding: 16px; }

@media (max-width: 576px) {
    .auth-page:not(.auth-page--split) { padding: 12px; }
    .auth-page:not(.auth-page--split) .auth-body { padding: 14px 16px 20px; }
}

/* ---- New logo (contains the wordmark): larger, natural proportions ---- */
.auth-brand-logo { width: auto; height: 92px; max-width: 160px; }
.auth-brand h1 { display: none; }
.auth-brand p { margin: 0; font-size: 14px; }

.auth-page:not(.auth-page--split) .auth-logo-mark {
    width: auto;
    height: auto;
    padding: 6px 12px;
    background: transparent;
}
.auth-page:not(.auth-page--split) .auth-logo-mark img { width: auto; height: 84px; max-width: 150px; }
