* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
:root {
    --bg-color: #0b0c10;
    --card-bg: #14161f;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --accent-neon: #00ffcc;
    --accent-purple: #7000ff;
    --gradient-primary: linear-gradient(135deg, #00ffcc 0%, #7000ff 100%);
}

body { 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px); 
    background-size: 40px 40px; 
}

a { text-decoration: none; color: inherit; }

.auth-container {
    width: 100%;
    max-width: 440px;
    padding: 40px 30px;
    background: var(--card-bg);
    border: 1px solid #1f222f;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    margin: 24px;
}

/* Logo */
.brand-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    margin-bottom: 40px;
}

.logo-rs {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -2px;
    display: flex; 
    gap: -2px;
}

.logo-rs span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block; 
}
.logo-rs span.mirrored { transform: scaleX(-1); }

.logo-sub {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-main);
    margin-top: 4px;
}

/* Títulos */
.auth-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

/* Botão Social (Google) */
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px;
    background: #1f222f;
    border: 1px solid #31354b;
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 24px;
}

.btn-social:hover {
    background: #2a2e45;
    border-color: var(--text-muted);
}

.btn-social i {
    font-size: 1.4rem;
}

/* Divisor "OU" */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #31354b;
}

.divider span {
    padding: 0 16px;
}

/* Mensagens de Alerta */
.message {
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
    text-align: center;
}

.message.error {
    background: rgba(255,71,87,0.1);
    border: 1px solid rgba(255,71,87,0.3);
    color: #ff6b81;
}

.message.success {
    background: rgba(46,213,115,0.1);
    border: 1px solid rgba(46,213,115,0.3);
    color: #7bed9f;
}

/* Formulário */
.form-group { margin-bottom: 20px; position: relative; }

label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 600; 
    font-size: 0.9rem; 
    color: var(--text-muted);
}

.input-icon-wrapper { position: relative; }
.input-icon-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
}

input { 
    width: 100%; 
    background: #0b0c10; 
    border: 1px solid #31354b; 
    padding: 14px 14px 14px 44px; /* Espaço para o ícone */
    border-radius: 8px; 
    color: var(--text-main); 
    font-size: 1rem; 
    transition: 0.2s; 
    outline: none;
}

input:focus { border-color: var(--accent-purple); }
input:focus + i { color: var(--accent-purple); } /* Muda cor do ícone no foco */

.forgot-pass {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    color: var(--accent-neon);
    font-weight: 600;
    margin-top: 8px;
    transition: opacity 0.2s;
}
.forgot-pass:hover { opacity: 0.8; }

.btn-submit { 
    background: var(--gradient-primary); 
    color: #000; 
    padding: 16px; 
    border: none; 
    border-radius: 8px; 
    font-weight: 800; 
    font-size: 1.05rem;
    width: 100%; 
    cursor: pointer; 
    transition: transform 0.2s, opacity 0.2s;
    margin-top: 10px;
}
.btn-submit:hover:not(:disabled) { opacity: 0.9; transform: translateY(-2px); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.auth-footer a {
    color: var(--accent-purple);
    font-weight: 700;
    margin-left: 4px;
    transition: color 0.2s;
}
.auth-footer a:hover { color: var(--accent-neon); }

/* Botão Voltar (Home) */
.btn-home {
    position: absolute;
    top: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.btn-home:hover { color: var(--text-main); }
.btn-home i { font-size: 1.2rem; }

@media (max-width: 600px) {
    .btn-home { top: 20px; left: 20px; }
    .auth-container { padding: 30px 20px; }
}