/* ===== TEAMSPOT LOGIN ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0d0b1e;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background-image:
    radial-gradient(ellipse at 15% 50%, rgba(80,70,228,0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(55,48,179,0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 90%, rgba(124,68,228,0.12) 0%, transparent 45%);
}

/* ─── Layout ─── */
.login-bg {
  width: 100%;
  max-width: 860px;
  display: flex;
  align-items: center;
  gap: 56px;
}

/* ─── Hero ─── */
.login-hero {
  flex: 1;
  min-width: 0;
  padding: 8px 0;
}

.hero-icon {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 20px;
  display: block;
  animation: heroFloat 5s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%       { transform: translateY(-10px) rotate(2deg); }
}

.hero-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(139,92,246,0.75);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 20px;
  text-shadow: 0 2px 28px rgba(0,0,0,0.5);
}

.hero-title em {
  color: #a78bfa;
  font-style: normal;
  text-shadow: 0 0 36px rgba(139,92,246,0.5);
}

.hero-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.72;
  margin-bottom: 32px;
  max-width: 330px;
}

.hero-features { list-style: none; display: flex; flex-direction: column; gap: 14px; }

.hero-feat {
  display: flex; align-items: center; gap: 13px;
  font-size: 0.88rem; color: rgba(255,255,255,0.72); font-weight: 600;
}

.feat-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: #7c6fea;
  box-shadow: 0 0 10px rgba(124,111,234,0.7);
}

/* ─── Card ─── */
.login-card {
  flex-shrink: 0;
  width: 400px;
  background: linear-gradient(160deg, #16134a 0%, #0f0c30 100%);
  border: 1px solid rgba(80,70,228,0.35);
  border-radius: 24px;
  padding: 40px 36px 36px;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.6),
    0 0 0 1px rgba(80,70,228,0.08) inset;
}

.login-card-deco { display: none; }

/* ─── Header (mobile only) ─── */
.login-header { text-align: center; margin-bottom: 28px; }

.login-logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: #a78bfa;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 4px;
}

.login-subtitle {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
}

/* ─── Erro ─── */
.login-error {
  background: rgba(231,76,60,0.15);
  border: 1px solid rgba(231,76,60,0.4);
  border-radius: 10px;
  color: #ff8070;
  font-size: 0.85rem;
  padding: 10px 14px;
  margin-bottom: 18px;
  text-align: center;
}

/* ─── Botão Google ─── */
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px 16px;
  background: #fff; color: #3c3c3c;
  border: none; border-radius: 12px;
  font-size: 0.95rem; font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.btn-google:hover { background: #f5f5f5; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.35); }
.btn-google:active { transform: translateY(0); }
.google-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ─── Divisor ─── */
.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0;
  color: rgba(255,255,255,0.3); font-size: 0.8rem;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.12);
}

/* ─── Campos ─── */
.field-group { margin-bottom: 14px; }

.field-group label {
  display: block; font-size: 0.8rem; font-weight: 700;
  color: rgba(255,255,255,0.65); margin-bottom: 6px; letter-spacing: 0.3px;
}

.field-group label small { font-weight: 400; color: rgba(255,255,255,0.35); font-size: 0.72rem; }

.field-group input {
  width: 100%; padding: 11px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: #fff; font-size: 0.92rem;
  transition: border-color 0.15s, background 0.15s; outline: none;
}

.field-group input::placeholder { color: rgba(255,255,255,0.22); }
.field-group input:focus { border-color: rgba(80,70,228,0.7); background: rgba(80,70,228,0.07); }

/* ─── Botão principal ─── */
.btn-primary {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, #5046e4, #3730b3);
  color: #fff; border: none; border-radius: 12px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: transform 0.1s, box-shadow 0.15s, opacity 0.15s;
  box-shadow: 0 4px 16px rgba(80,70,228,0.45);
  margin-top: 6px; letter-spacing: 0.3px;
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(80,70,228,0.55); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* ─── Switch de form ─── */
.form-switch {
  text-align: center; font-size: 0.82rem;
  color: rgba(255,255,255,0.4); margin-top: 18px;
}
.form-switch a { color: #a78bfa; text-decoration: none; font-weight: 700; }
.form-switch a:hover { text-decoration: underline; }

/* ─── Desktop: esconde header do card ─── */
@media (min-width: 781px) {
  .login-header { display: none; }
  .login-card-deco {
    display: block; text-align: center;
    font-size: 2rem; margin-bottom: 22px;
  }
}

/* ─── Mobile ─── */
@media (max-width: 780px) {
  body { padding: 24px 16px 32px; align-items: flex-start; }
  .login-card-deco { display: none !important; }
  .login-bg { flex-direction: column; max-width: 440px; gap: 0; }
  .login-hero { text-align: center; padding: 0 8px 28px; }
  .hero-icon { font-size: 3rem; margin-bottom: 12px; animation: none; }
  .hero-eyebrow { margin-bottom: 8px; }
  .hero-title { font-size: 1.9rem; margin-bottom: 12px; }
  .hero-sub { font-size: 0.84rem; max-width: 100%; margin-bottom: 18px; }
  .hero-features { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .hero-feat {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px; padding: 6px 14px; font-size: 0.78rem; gap: 7px;
  }
  .feat-dot { width: 6px; height: 6px; }
  .login-card { width: 100%; padding: 30px 22px 28px; border-radius: 20px; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 1.6rem; }
}
