* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green: #00ff88;
    --green-hover: #00cc6a;
    --green-glow: rgba(0, 255, 136, 0.35);
    --bg-dark: #0c0f1a;
    --card: rgba(17, 24, 43, 0.92);
    --input-bg: #1c2545;
    --text: #ffffff;
    --muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
}

html, body {
    height: 100%;
}

body.auth-page {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
}

.bg-stadium {
    position: fixed;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1508098682722-e99c643e7f0b?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    z-index: 0;
}

.bg-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(105deg, rgba(6, 10, 20, 0.92) 0%, rgba(6, 10, 20, 0.75) 45%, rgba(6, 10, 20, 0.88) 100%);
    z-index: 1;
}

.auth-layout {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 100vh;
    padding: 40px 48px 60px;
    gap: 40px;
    align-items: center;
}

/* BRAND LEFT */
.auth-brand {
    flex: 1;
    max-width: 520px;
    padding-right: 20px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.brand-shield {
    width: 64px;
    height: 72px;
    background: linear-gradient(180deg, #1a1a2e, #0d0d18);
    border: 2px solid var(--green);
    border-radius: 8px 8px 12px 12px;
    clip-path: polygon(50% 0%, 100% 18%, 100% 72%, 50% 100%, 0% 72%, 0% 18%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.shield-bfo {
    font-size: 11px;
    font-weight: 900;
    color: var(--green);
    letter-spacing: -0.5px;
}

.shield-ball {
    font-size: 14px;
    margin-top: 2px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 42px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -1px;
    line-height: 1;
}

.brand-online {
    font-size: 28px;
    font-weight: 800;
    font-style: italic;
    color: var(--green);
    position: relative;
    padding-bottom: 8px;
    margin-top: 4px;
}

.brand-online::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--green);
    box-shadow: 0 0 12px var(--green-glow);
}

.brand-tagline {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 36px;
}

.brand-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.brand-features li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.feat-icon {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 255, 136, 0.4);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--green);
}

.feat-icon svg {
    width: 20px;
    height: 20px;
}

.brand-features strong {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.brand-features span {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}

.brand-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* PANEL RIGHT */
.auth-panel {
    flex: 0 0 420px;
    display: flex;
    justify-content: center;
}

.auth-card {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.auth-tab {
    flex: 1;
    padding: 12px 8px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s, border-color 0.2s;
}

.auth-tab.active {
    color: var(--green);
    border-bottom-color: var(--green);
}

.auth-tab:hover:not(.active) {
    color: #fff;
}

.auth-form-wrap h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.auth-sub {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 22px;
}

.field-label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
}

.input-wrap {
    position: relative;
    margin-bottom: 16px;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--muted);
    pointer-events: none;
}

.input-wrap input {
    width: 100%;
    padding: 13px 44px 13px 42px;
    background: var(--input-bg);
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrap input::placeholder {
    color: #64748b;
}

.input-wrap input:focus {
    border-color: rgba(0, 255, 136, 0.4);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.toggle-pass {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
}

.toggle-pass svg {
    width: 18px;
    height: 18px;
}

.toggle-pass:hover {
    color: var(--green);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    cursor: pointer;
}

.checkbox-label input {
    accent-color: var(--green);
    width: 16px;
    height: 16px;
}

.link-green {
    color: var(--green);
    text-decoration: none;
    font-weight: 600;
}

.link-green:hover {
    text-decoration: underline;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--green);
    border: none;
    border-radius: 10px;
    color: #0c0f1a;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover:not(:disabled) {
    background: var(--green-hover);
    box-shadow: 0 8px 24px var(--green-glow);
    transform: translateY(-1px);
}

.btn-primary:disabled,
.btn-primary.loading {
    opacity: 0.85;
    cursor: wait;
}

.btn-primary .btn-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(12, 15, 26, 0.3);
    border-top-color: #0c0f1a;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto;
}

.btn-primary.loading .btn-text { display: none; }
.btn-primary.loading .btn-loader { display: block; }

@keyframes spin {
    to { transform: rotate(360deg); }
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.btn-social {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    transition: opacity 0.2s;
}

.btn-social:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-social svg {
    width: 20px;
    height: 20px;
}

.btn-facebook {
    background: #1877f2;
    color: #fff;
}

.btn-google {
    background: #fff;
    color: #333;
}

.auth-footer-link {
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    color: var(--muted);
}

.alert {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}

.alert-erro {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.alert-sucesso {
    background: rgba(0, 255, 136, 0.12);
    border: 1px solid rgba(0, 255, 136, 0.35);
    color: var(--green);
}

.auth-copyright {
    position: fixed;
    bottom: 12px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 11px;
    color: #64748b;
    z-index: 3;
}

@media (max-width: 960px) {
    .auth-layout {
        flex-direction: column;
        padding: 24px 20px 50px;
    }

    .auth-brand {
        max-width: 100%;
        text-align: center;
    }

    .brand-logo {
        justify-content: center;
    }

    .brand-features li {
        text-align: left;
    }

    .brand-badges {
        justify-content: center;
    }

    .auth-panel {
        flex: 1;
        width: 100%;
        max-width: 420px;
    }

    .brand-name { font-size: 32px; }
    .brand-online { font-size: 22px; }
}
