@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-app: #030305;
    --bg-card: #0a0a0f;
    --primary: #00F0A8; 
    --primary-light: rgba(0, 240, 168, 0.15);
    --primary-glow: rgba(0, 240, 168, 0.35);
    --success: #32D74B;
    --danger: #FF3B30;
    --text-main: #F5F5F7;
    --text-muted: #8E8E93;
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.15);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; -webkit-tap-highlight-color: transparent; }

body { background-color: var(--bg-app); color: var(--text-main); min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

/* LUZES E FUNDO */
.bg-glow { position: fixed; top: -30%; left: -20%; width: 80vw; height: 80vh; z-index: -1; background: radial-gradient(circle, var(--primary-light) 0%, transparent 65%); filter: blur(120px); pointer-events: none; }
.bg-glow::after { content: ''; position: absolute; bottom: -50%; right: -20%; width: 60vw; height: 60vh; background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 60%); filter: blur(90px); }

/* LAYOUT E RESPONSIVIDADE */
.auth-wrapper { display: flex; width: 100%; max-width: 1100px; padding: 40px 20px; gap: 80px; align-items: center; justify-content: space-between; z-index: 2; }
.auth-brand { max-width: 480px; }
.auth-brand img { max-width: 180px; width: 100%; height: auto; margin-bottom: 24px; filter: drop-shadow(0 0 15px var(--primary-glow)); }
.auth-brand h1 { font-size: 48px; color: #fff; margin-bottom: 16px; letter-spacing: -1.5px; font-weight: 900; line-height: 1.1; }
.auth-brand p { color: var(--text-muted); font-size: 16px; line-height: 1.6; font-weight: 400; }

/* CAIXAS DE LOGIN E CADASTRO */
.auth-box { background: linear-gradient(145deg, #121218 0%, #050508 100%); backdrop-filter: blur(30px); padding: 48px 40px; border-radius: var(--radius-xl); border: 1px solid var(--border-glass); border-top: 1px solid rgba(0, 240, 168, 0.3); width: 100%; max-width: 440px; text-align: center; box-shadow: 0 30px 60px rgba(0,0,0,0.8); position: relative; overflow: hidden; }
.auth-box::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 60%; height: 20px; background: radial-gradient(ellipse, var(--primary-glow) 0%, transparent 70%); pointer-events: none; }
.auth-box h2 { margin-bottom: 28px; font-size: 26px; font-weight: 800; letter-spacing: -0.5px; color: #fff; }

/* INPUTS E BOTÕES */
input { width: 100%; height: 56px; padding: 0 20px; background: rgba(0,0,0,0.5); border: 1px solid var(--border-glass); border-radius: var(--radius-md); color: #fff; outline: none; font-size: 15px; font-weight: 500; transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1); margin-bottom: 16px; }
input::placeholder { color: #66666e; }
input:focus { border-color: var(--primary); background: rgba(0, 240, 168, 0.03); box-shadow: 0 0 0 4px var(--primary-light), inset 0 2px 4px rgba(0,0,0,0.2); }

button { width: 100%; height: 56px; border-radius: var(--radius-md); border: none; font-weight: 800; cursor: pointer; transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1); background: var(--primary); color: #000; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
button:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 10px 25px var(--primary-glow); filter: brightness(1.1); }
button:active:not(:disabled) { transform: translateY(0); }
button.secondary { background: rgba(255,255,255,0.03); color: #fff; border: 1px solid var(--border-glass); box-shadow: none; }
button.secondary:hover:not(:disabled) { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }
button:disabled { opacity: 0.4; cursor: not-allowed; background: #2d2d34; color: #8e8e93; transform: none; box-shadow: none; }

/* MODAIS E TOASTS */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(15px); display: none; align-items: center; justify-content: center; z-index: 10000; animation: fadeIn 0.3s forwards; }
.modal-content { background: #0d0d12; padding: 40px; border-radius: var(--radius-xl); width: 92%; max-width: 420px; border: 1px solid var(--border-glass); border-top: 1px solid var(--primary); position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.9); animation: fadeSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.modal-header h3 { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.5px; display: flex; align-items: center; gap: 10px;}
.modal-close { background: rgba(255,255,255,0.05) !important; color: var(--text-muted) !important; width: 36px !important; height: 36px !important; border-radius: 50% !important; display: flex; align-items: center; justify-content: center; margin: 0; padding: 0 !important; border: 1px solid rgba(255,255,255,0.1) !important; box-shadow: none !important; }
.modal-close:hover { background: rgba(255,255,255,0.1) !important; color: #fff !important; }

#toast-container { position: fixed; top: 32px; left: 50%; transform: translateX(-50%); z-index: 99999; display: flex; flex-direction: column; gap: 12px; pointer-events: none; width: 90%; max-width: 400px;}
.toast { background: rgba(13, 13, 18, 0.95); backdrop-filter: blur(20px); border: 1px solid var(--border-glass); color: #fff; padding: 16px 20px; border-radius: var(--radius-md); display: flex; align-items: center; gap: 12px; box-shadow: 0 15px 35px rgba(0,0,0,0.8); font-weight: 600; font-size: 14px; animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1); }

/* RESPONSIVIDADE MOBILE ABSOLUTA */
@media (max-width: 900px) { 
    .auth-wrapper { flex-direction: column; gap: 40px; padding-top: 30px; padding-bottom: 40px; justify-content: flex-start; } 
    .auth-brand { text-align: center; max-width: 100%; } 
    .auth-brand img { max-width: 140px; }
    .auth-brand h1 { font-size: 34px; }
    .auth-brand p { font-size: 15px; padding: 0 10px; }
    .auth-box { padding: 32px 24px; border-radius: var(--radius-lg); }
    .auth-box h2 { font-size: 24px; }
    .modal-content { padding: 32px 24px; border-radius: var(--radius-lg); }
    /* Ajuste para o ReCaptcha não vazar no mobile */
    .g-recaptcha { transform: scale(0.9); transform-origin: 0 0; }
    .g-recaptcha > div { margin: 0 auto; }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
