/* ============================================================
   AUTH PAGES — Modern Split-Panel Design
   ============================================================ */

/* ── Layout ─────────────────────────────────────────────── */
.auth-wrap {
    min-height: 100vh;
    display: flex;
    background: #060b18;
}

/* Left branding panel */
.auth-panel-left {
    display: none;
    width: 45%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 60%, #312e81 100%);
    padding: 60px 56px;
    flex-direction: column;
    justify-content: space-between;
}
@media (min-width: 1024px) {
    .auth-panel-left { display: flex; }
}

.auth-panel-left::before {
    content: '';
    position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(59,130,246,.2) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 70%, rgba(139,92,246,.15) 0%, transparent 55%);
}
.auth-panel-left-grid {
    position: absolute; inset: 0; z-index: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 50px 50px;
}
.auth-panel-left > * { position: relative; z-index: 1; }

.auth-brand-logo {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none;
}
.auth-brand-logo img { height: 48px; width: auto; }
.auth-brand-name {
    font-size: 1.4rem; font-weight: 900; color: #fff;
    letter-spacing: -.02em;
}

.auth-panel-tagline {
    flex: 1;
    display: flex; flex-direction: column; justify-content: center;
    padding: 40px 0;
}
.auth-panel-tagline h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 900; color: #fff;
    letter-spacing: -.03em; line-height: 1.1;
    margin-bottom: 1rem;
}
.auth-panel-tagline h2 span {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.auth-panel-tagline p {
    color: #94a3b8; font-size: 1rem; line-height: 1.7;
    max-width: 340px; margin-bottom: 2rem;
}

.auth-feature-list { list-style: none; padding: 0; margin: 0; }
.auth-feature-list li {
    display: flex; align-items: center; gap: 10px;
    color: #cbd5e1; font-size: .9rem; margin-bottom: .75rem;
}
.auth-feature-list li i {
    width: 28px; height: 28px; border-radius: 8px;
    background: rgba(59,130,246,.2); color: #60a5fa;
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem; flex-shrink: 0;
}

.auth-panel-footer {
    font-size: .78rem; color: #475569;
}

/* Right form panel */
.auth-panel-right {
    flex: 1;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    padding: 40px 24px;
    overflow-y: auto;
    min-height: 100vh;
}

.auth-form-box {
    width: 100%;
    max-width: 460px;
}

/* Mobile top bar (shown when left panel is hidden) */
.auth-mobile-brand {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 2rem;
    text-decoration: none;
}
.auth-mobile-brand img { height: 36px; }
.auth-mobile-brand span {
    font-size: 1.2rem; font-weight: 900; color: #0f172a;
}
@media (min-width: 1024px) {
    .auth-mobile-brand { display: none; }
}

/* ── Form Header ─────────────────────────────────────────── */
.auth-form-title {
    font-size: 1.75rem; font-weight: 900; color: #0f172a;
    letter-spacing: -.02em; margin-bottom: .4rem;
}
.auth-form-sub {
    font-size: .92rem; color: #64748b; margin-bottom: 2rem;
}

/* ── Inputs ──────────────────────────────────────────────── */
.auth-label {
    font-size: .78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em;
    color: #475569; margin-bottom: 6px; display: block;
}
.auth-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    font-size: .95rem;
    transition: border-color .2s ease, box-shadow .2s ease;
    outline: none;
}
.auth-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.auth-input.is-invalid { border-color: #ef4444; }
.auth-input::placeholder { color: #94a3b8; }
.auth-input-group {
    position: relative; display: flex; align-items: center;
}
.auth-input-group .auth-input { padding-left: 44px; }
.auth-input-group .auth-input-icon {
    position: absolute; left: 14px;
    color: #94a3b8; font-size: 1rem; pointer-events: none;
}
.auth-input-group .auth-input:focus ~ .auth-input-icon,
.auth-input-group:focus-within .auth-input-icon { color: #3b82f6; }

/* Select */
.auth-select {
    width: 100%;
    height: 48px;
    padding: 0 36px 0 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") no-repeat right 12px center / 14px;
    color: #0f172a; font-size: .95rem;
    appearance: none; outline: none;
    transition: border-color .2s ease;
}
.auth-select:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.12); }

/* Autofill fix */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 40px #fff inset !important;
    -webkit-text-fill-color: #0f172a !important;
}

/* ── Submit Button ───────────────────────────────────────── */
.auth-btn {
    width: 100%;
    height: 50px;
    border: none; border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff; font-weight: 800; font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(99,102,241,.35);
    transition: all .25s ease;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99,102,241,.45);
}

/* ── Social Buttons ──────────────────────────────────────── */
.auth-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 1.5rem 0;
    color: #94a3b8; font-size: .8rem; font-weight: 600;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: #e2e8f0;
}

.auth-social-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: #fff; color: #0f172a;
    font-weight: 600; font-size: .9rem;
    text-decoration: none;
    transition: all .2s ease;
}
.auth-social-btn:hover {
    border-color: #3b82f6; background: #f8fafc; color: #0f172a;
    transform: translateY(-1px);
}
.auth-social-btn.google i { color: #ea4335; }
.auth-social-btn.facebook i { color: #1877f2; }

/* ── Account Type Cards ──────────────────────────────────── */
.auth-type-card {
    cursor: pointer;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px; padding: 18px 16px;
    text-align: center;
    transition: all .25s ease;
    background: #f8fafc;
}
.auth-type-card:hover { border-color: #bfdbfe; background: #eff6ff; }
.auth-type-card.selected {
    border-color: #3b82f6; background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.auth-type-card .auth-type-icon {
    width: 48px; height: 48px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin: 0 auto 10px;
}
.auth-type-card.player .auth-type-icon { background: #eff6ff; color: #3b82f6; }
.auth-type-card.organizer .auth-type-icon { background: #fffbeb; color: #f59e0b; }
.auth-type-card h6 { font-weight: 800; color: #0f172a; margin-bottom: 3px; font-size: .9rem; }
.auth-type-card small { color: #64748b; font-size: .75rem; }

/* ── Info Box ────────────────────────────────────────────── */
.auth-info-box {
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    border-radius: 0 10px 10px 0;
    padding: 12px 14px;
    font-size: .85rem; color: #78716c;
}

/* ── Error / Validation ──────────────────────────────────── */
.auth-error { font-size: .78rem; color: #ef4444; margin-top: 4px; }

/* ── Legacy class compatibility (used in Blade templates) ── */
.auth-page-wrapper {
    background: #fff;
    min-height: 100vh;
}
.auth-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,.08);
}
.bg-dark-deep { background: #f8fafc !important; border-color: #e2e8f0 !important; color: #0f172a !important; }
.text-light-muted { color: #64748b !important; }
.text-vibrant-blue { color: #2563eb !important; }
.auth-card .text-white { color: #0f172a !important; }
.auth-card .text-white-50 { color: #64748b !important; }
.auth-card .form-label.text-white { color: #0f172a !important; }
.auth-card .form-control {
    height: 48px; background: #fff !important;
    border-color: #e2e8f0 !important; color: #0f172a !important;
    border-radius: 12px;
}
.auth-card .form-control:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59,130,246,.12) !important;
}
.auth-card .input-group-text {
    background: #f1f5f9 !important; border-color: #e2e8f0 !important;
    color: #64748b !important; border-radius: 12px 0 0 12px;
}
.auth-card .form-select {
    color: #0f172a; background-color: #fff !important;
    border-color: #e2e8f0 !important; border-radius: 12px;
}
.auth-card .form-select:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59,130,246,.12) !important;
}
.type-selection-card { cursor: pointer; transition: all .25s ease; }
.selection-content {
    background: #f8fafc; border: 1.5px solid #e2e8f0;
    border-radius: 14px; padding: 1.25rem; text-align: center;
    transition: all .25s ease;
}
.type-selection-card input:checked + .selection-content {
    border-color: #3b82f6; background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.type-selection-card:hover .selection-content { border-color: #bfdbfe; transform: translateY(-2px); }
.registration-info-box {
    background: #fffbeb; border-radius: 10px;
    border-left: 3px solid #f59e0b;
    font-size: .85rem; color: #78716c;
}
.social-login-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 1.25rem 0; color: #94a3b8; font-size: .8rem; font-weight: 600;
}
.social-login-divider::before, .social-login-divider::after {
    content: ''; flex: 1; height: 1px; background: #e2e8f0;
}
.btn-social {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; border-radius: 12px; border: 1.5px solid #e2e8f0;
    background: #fff; color: #0f172a; font-weight: 600; font-size: .9rem;
    text-decoration: none; transition: all .2s ease; width: 100%;
}
.btn-social:hover { border-color: #3b82f6; background: #f8fafc; color: #0f172a; }
.btn-google i { color: #ea4335; }
.btn-facebook i { color: #1877f2; }
.extra-small { font-size: .7rem; }

/* Admin login */
.auth-admin-card {
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,.08);
}
.auth-admin-card .card-header {
    background: linear-gradient(135deg, #ecfdf5, #eff6ff);
    border-bottom: 1px solid #e2e8f0; color: #0f172a; padding: 1rem 1.25rem;
}
.auth-admin-card .form-control {
    background: #fff; border-color: #e2e8f0; color: #0f172a; border-radius: 10px;
}
.auth-admin-card .form-control:focus { border-color: #3b82f6; }
.auth-admin-card .input-group-text {
    background: #f8fafc; border-color: #e2e8f0; color: #64748b;
}
.auth-admin-muted { color: #64748b; }
.auth-admin-muted a { color: #2563eb; }

/* Email verify */
.verify-email-wrapper {
    min-height: calc(100vh - 72px);
    background: linear-gradient(135deg, #f8fafc, #eff6ff);
    display: flex; align-items: center;
}
.glass-card {
    background: #fff !important; border: 1px solid #e2e8f0 !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 50px rgba(0,0,0,.08) !important;
}
.glass-card .text-white { color: #0f172a !important; }
.verify-icon-container {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, #059669, #2563eb);
    border-radius: 20px; display: flex; align-items: center; justify-content: center;
    font-size: 32px; color: #fff;
    box-shadow: 0 10px 24px rgba(37,99,235,.25);
    transform: rotate(-5deg); transition: all .5s ease;
}
.verify-icon-container:hover { transform: rotate(0deg) scale(1.05); }
.btn-premium-primary {
    background: #2563eb !important; color: #fff !important;
    border: none; border-radius: 12px; font-weight: 700; padding: 12px;
    box-shadow: 0 4px 15px rgba(37,99,235,.25); transition: all .3s ease;
}
.btn-premium-primary:hover { transform: translateY(-2px); background: #1d4ed8 !important; }
.card-footer-v2 { background: #f8fafc; border-top: 1px solid #e2e8f0; }
.text-accent { color: #2563eb !important; }
.text-accent:hover { color: #1d4ed8 !important; }

/* ── Auth page logo (left panel — always white text) ─────── */
.auth-panel-left .rt-logo-run { color: #fff !important; }
.auth-panel-left .rt-logo-text { font-size: 1.25rem; }

/* ── Mobile brand logo ───────────────────────────────────── */
.auth-mobile-brand .rt-logo-run { color: #0f172a; }
.auth-mobile-brand .rt-logo-text { font-size: 1.1rem; }
