:root {
  --bg-primary: #07090f;
  --bg-secondary: #0d111b;
  --card-bg: rgba(16, 20, 31, 0.88);
  --card-border: rgba(255, 255, 255, 0.08);
  --text-primary: #f5f7ff;
  --text-secondary: #9ca3b5;
  --accent: #7c3aed;
  --accent-2: #06b6d4;
  --accent-3: #22c55e;
  --danger: #ef4444;
  --shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
}

body {
  position: relative;
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(124, 58, 237, 0.20), transparent 25%),
    radial-gradient(circle at 80% 25%, rgba(6, 182, 212, 0.16), transparent 22%),
    radial-gradient(circle at 50% 85%, rgba(34, 197, 94, 0.12), transparent 18%),
    linear-gradient(135deg, #05070d 0%, #0a0f18 45%, #07090f 100%);
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  padding: 40px 56px;
}

.hero {
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 22px;
  padding: 10px 16px;
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  color: #c4b5fd;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1.2px;
}

.hero h1 {
  font-size: 64px;
  line-height: 1.05;
  margin-bottom: 18px;
  letter-spacing: -1.5px;
}

.hero h1 span {
  color: var(--accent-2);
  text-shadow: 0 0 18px rgba(6, 182, 212, 0.35);
}

.hero p {
  max-width: 560px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 14px 22px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #5b21b6);
  color: white;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(124, 58, 237, 0.45);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.15) inset;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 16px;
  max-width: 720px;
}

.stat-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  font-size: 24px;
  margin-bottom: 8px;
  color: white;
}

.stat-card span {
  color: var(--text-secondary);
  font-size: 14px;
}

.auth-side {
  display: flex;
  justify-content: center;
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  padding: 34px;
  border-radius: 28px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-glow {
  position: absolute;
  top: -80px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.35), transparent 70%);
  pointer-events: none;
}

.login-header {
  position: relative;
  z-index: 1;
  margin-bottom: 26px;
}

.login-header h2 {
  font-size: 30px;
  margin-bottom: 10px;
}

.login-header p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.login-form {
  position: relative;
  z-index: 1;
}

.input-group {
  margin-bottom: 18px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  color: #dbe1f1;
  font-size: 14px;
  font-weight: bold;
}

.input-group input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 20, 0.9);
  color: white;
  outline: none;
  transition: 0.2s ease;
}

.input-group input::placeholder {
  color: #6f7890;
}

.input-group input:focus {
  border-color: rgba(6, 182, 212, 0.8);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.login-btn {
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-2), #2563eb);
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.25s ease;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.3);
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.4);
}

.divider {
  position: relative;
  margin: 22px 0;
  text-align: center;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.divider span {
  position: relative;
  z-index: 1;
  padding: 0 12px;
  background: rgba(16, 20, 31, 0.95);
  color: var(--text-secondary);
  font-size: 13px;
}

.ghost-btn {
  width: 100%;
  height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(124, 58, 237, 0.28);
  background: rgba(124, 58, 237, 0.08);
  color: #ddd6fe;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s ease;
}

.ghost-btn:hover {
  background: rgba(124, 58, 237, 0.14);
  transform: translateY(-1px);
}

.register-text {
  margin-top: 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

.register-text a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: bold;
}

.register-text a:hover {
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .container {
    grid-template-columns: 1fr;
    padding: 28px 22px;
    gap: 28px;
  }

  .hero {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .auth-side {
    justify-content: stretch;
  }

  .login-card {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  .login-card {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .login-header h2 {
    font-size: 24px;
  }
}

.form-message {
  width: 100%;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
}

.form-message.error {
  background: rgba(255, 80, 80, 0.12);
  border: 1px solid rgba(255, 80, 80, 0.25);
  color: #ff8a8a;
}

.form-message.success {
  background: rgba(80, 255, 140, 0.12);
  border: 1px solid rgba(80, 255, 140, 0.25);
  color: #8fffb2;
}

.auth-card {
  min-height: 640px;
}

.auth-panels {
  position: relative;
}

.auth-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(30px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    visibility 0.35s ease;
  pointer-events: none;
}

.auth-panel.active {
  position: relative; /* 👈 ESSA LINHA RESOLVE O CORTE */
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.auth-panel.to-left {
  transform: translateX(-30px);
}

.auth-panel.to-right {
  transform: translateX(30px);
}

@media (max-width: 640px) {
  .auth-card {
    min-height: 700px;
  }

  .auth-panels {
    min-height: 630px;
  }
}


