/* =====================================================================
   WhatsMulti — Auth Pages (Login / Register) — Glassmorphism Premium
   ===================================================================== */

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

html, body {
  min-height: 100%;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: #e9edef;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #060d11;
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(18,140,126,0.3)  0%, transparent 55%),
    radial-gradient(ellipse at 80% 10%, rgba(37,211,102,0.15) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 90%, rgba(6,13,17,0.95)    0%, transparent 60%);
  position: relative;
  overflow: hidden;
}

/* Partículas decorativas (circles) */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
body::before {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,211,102,0.06) 0%, transparent 70%);
  top: -200px;
  left: -200px;
  animation: float1 12s ease-in-out infinite alternate;
}
body::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(18,140,126,0.08) 0%, transparent 70%);
  bottom: -150px;
  right: -150px;
  animation: float2 15s ease-in-out infinite alternate;
}

@keyframes float1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(80px, 60px) scale(1.1); }
}
@keyframes float2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-60px, -80px) scale(1.15); }
}

/* ---------- Card Glass ---------- */
.auth-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: cardIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

/* Logo */
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.auth-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #128C7E, #25D366);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
}

.auth-box h1 {
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg, #25D366, #00d4aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  text-align: center;
}

.subtitulo {
  text-align: center;
  color: #8696a0;
  font-size: 14px;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* Form */
form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8696a0;
  margin-bottom: -8px;
}

input[type="text"],
input[type="password"],
input[type="email"] {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #e9edef;
  font-size: 15px;
  outline: none;
  transition: 0.2s ease;
  width: 100%;
}

input:focus {
  border-color: rgba(37, 211, 102, 0.5);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.12);
}

input::placeholder { color: rgba(134,150,160,0.6); }

button[type="submit"] {
  padding: 13px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s ease;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  margin-top: 4px;
  position: relative;
  overflow: hidden;
}

button[type="submit"]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: 0.2s;
}
button[type="submit"]:hover::after { background: rgba(255,255,255,0.08); }
button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
}
button[type="submit"]:active { transform: translateY(0); }
button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Erro */
.erro {
  color: #ff4d6d;
  font-size: 13px;
  min-height: 18px;
  font-weight: 500;
  text-align: center;
  padding: 4px 0;
}

/* Rodapé */
.rodape {
  text-align: center;
  margin-top: 20px;
  color: #8696a0;
  font-size: 14px;
}
.rodape a {
  color: #25D366;
  text-decoration: none;
  font-weight: 600;
  transition: 0.15s;
}
.rodape a:hover { text-decoration: underline; opacity: 0.85; }

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(134,150,160,0.5);
  font-size: 12px;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

/* Escondido */
.escondido { display: none !important; }

/* Spinner no botão */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
