/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #9787f4;
    --primary-hover: #7a6add;
    --background: #0a0a0a;
    --surface: #1a1a1a;
    --surface-hover: #252525;
    --text: #ffffff;
    --text-secondary: #a0a0a0;
    --border: #2a2a2a;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
}

/* Área geral */
.auth-main {
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0 32px;
}

/* Card */
.auth-card {
    width: 100%;
    max-width: 460px;
    background-color: rgba(20, 20, 24, 0.85);
    background-image: linear-gradient(160deg, rgba(151, 135, 244, 0.15), rgba(0, 0, 0, 0.8));
    backdrop-filter: blur(16px) saturate(130%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px 22px 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
}

.auth-header {
    margin-bottom: 18px;
}

.auth-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(151, 135, 244, 0.4);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
}

.auth-header h2 {
    margin: 8px 0 4px;
    font-size: 22px;
}

.auth-header h2 span {
    color: var(--primary);
}

.auth-lead {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Toggle login/cadastro */
.auth-toggle {
    display: flex;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 999px;
    padding: 3px;
    margin-bottom: 14px;
}

.auth-toggle-btn {
    flex: 1;
    border: none;
    border-radius: 999px;
    padding: 8px 0;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.auth-toggle-btn.active {
    background: var(--primary);
    color: #fff;
}

/* Forms */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.9);
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 10px;
}

.input-wrapper i {
    color: var(--text-secondary);
    font-size: 16px;
}

.input-wrapper input {
    flex: 1;
    padding: 10px 8px;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 14px;
}

.form-extra {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 12px;
}

.checkbox input {
    accent-color: var(--primary);
}

.link-muted {
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
}

.link-muted:hover {
    text-decoration: underline;
}

/* Botões */
.btn-full {
    width: 100%;
    margin-top: 8px;
    padding: 10px 14px;
    background: var(--primary);
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    display: block;
}

.btn-full:hover {
    background: var(--primary-hover);
}

.btn-full i {
    margin-right: 6px;
}

/* ARRUMA DUPLICAÇÃO */
.auth-form button.btn-full {
    margin-bottom: 2px !important;
}

/* Texto abaixo */
.auth-footer-text {
    margin-top: 10px;
    text-align: center;
    color: var(--text-secondary);
}

.link-button {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
}

/* Divider */
.auth-divider {
    margin: 22px 0 10px;
    text-align: center;
    color: var(--text-secondary);
    position: relative;
    font-size: 12px;
}

.auth-divider span {
    background: transparent;
    padding: 0 10px;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 32%;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

/* Social */
.auth-social {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-social {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 10px;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    gap: 6px;
}

.btn-social.discord {
    background: #5865F2;
}

.btn-social.google {
    background: #DB4437;
}

.btn-social.github {
    background: #111827;
}

.btn-social:hover {
    opacity: 0.85;
}

/* Termos */
.auth-privacy {
    text-align: center;
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-secondary);
}

/* Responsivo */
@media (max-width: 600px) {
    .auth-card {
        padding: 18px 14px;
    }

    .auth-social {
        flex-direction: column;
    }
}