*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  min-height: 100vh;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(ellipse 80% 60% at 50% -20%, #1e3a5f50, transparent);
  position: relative;
}

.auth-back {
  position: absolute;
  top: 24px;
  left: 24px;
  font-size: 0.85rem;
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.auth-back:hover { color: #e2e8f0; }

/* Card */
.auth-card {
  width: 100%;
  max-width: 400px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

.auth-logo {
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 4px;
}

.auth-tagline {
  text-align: center;
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 28px;
  letter-spacing: 0.3px;
}

/* Abas */
.auth-tabs {
  display: flex;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
  gap: 4px;
}

.auth-tab {
  flex: 1;
  padding: 9px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  width: auto;
  margin: 0;
}

.auth-tab.active {
  background: #1e293b;
  color: #e2e8f0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Mensagem */
.auth-msg {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.84rem;
  margin-bottom: 16px;
  text-align: center;
  line-height: 1.5;
}
.auth-msg.error   { background: #ef444415; border: 1px solid #ef444430; color: #ef4444; }
.auth-msg.success { background: #22c55e15; border: 1px solid #22c55e30; color: #22c55e; }

/* Formulários */
.auth-form .form-group { margin-bottom: 14px; }

.auth-form label {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.auth-form input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  outline: none;
}
.auth-form input:focus       { border-color: #22c55e; }
.auth-form input::placeholder { color: #475569; }

/* Botão principal */
.btn-auth {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 8px;
  background: #22c55e;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 6px;
}
.btn-auth:hover    { background: #16a34a; }
.btn-auth:active   { transform: scale(0.98); }
.btn-auth:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Divisor */
.auth-divider {
  position: relative;
  text-align: center;
  margin: 20px 0;
}
.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 1px;
  background: #334155;
}
.auth-divider span {
  position: relative;
  background: #1e293b;
  padding: 0 12px;
  font-size: 0.78rem;
  color: #475569;
}

/* Botão Google */
.btn-google {
  width: 100%;
  padding: 11px;
  border: 1px solid #334155;
  border-radius: 8px;
  background: transparent;
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
}
.btn-google:hover { background: #334155; }

/* Rodapé */
.auth-footer {
  text-align: center;
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 20px;
}

.auth-link {
  background: none;
  border: none;
  color: #22c55e;
  font-weight: 600;
  cursor: pointer;
  font-size: inherit;
  padding: 0;
  width: auto;
  margin: 0;
  transition: color 0.2s;
}
.auth-link:hover { color: #16a34a; }

@media (max-width: 440px) {
  .auth-card { padding: 24px 20px; border-radius: 16px; }
}
