/* FORMULARIOS DE AUTENTICACAO */

.auth-container,
.login-container {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(5, 8, 16, 0.18), rgba(5, 8, 16, 0.9)),
    radial-gradient(ellipse at 50% 46%, rgba(139, 92, 246, 0.18), transparent 60%),
    #060A14;
  display: flex;
  justify-content: center;
  min-height: 100svh;
  overflow: hidden;
  padding: 2rem;
  position: relative;
}

.auth-container::before,
.login-container::before {
  background-image:
    repeating-radial-gradient(ellipse at 14% 4%, rgba(255, 255, 255, 0.16) 0 2px, transparent 3px 42px),
    repeating-radial-gradient(ellipse at 82% 96%, rgba(255, 255, 255, 0.1) 0 2px, transparent 3px 56px);
  content: "";
  inset: -18%;
  opacity: 0.42;
  pointer-events: none;
  position: absolute;
  transform: rotate(-7deg) scale(1.08);
}

.auth-card {
  animation: slideIn 0.3s ease-out;
  background: rgba(8, 13, 28, 0.9);
  border: 1px solid rgba(167, 139, 250, 0.26);
  border-radius: 8px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
  max-height: calc(100svh - 2rem);
  max-width: 560px;
  overflow-y: auto;
  padding: 2.6rem;
  position: relative;
  width: 100%;
  z-index: 1;
}

.login-container .auth-card {
  max-width: 450px;
}

.auth-header {
  margin-bottom: 2rem;
  text-align: center;
}

.auth-header::before {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.36);
  border-radius: 999px;
  color: #D8CCFF;
  content: "RISE ENGLISH";
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  margin-bottom: 1rem;
  padding: 0.4rem 0.8rem;
}

.auth-header h1 {
  color: #F8FAFC;
  font-size: 2.6rem;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.auth-card h3 {
  color: #F8FAFC !important;
}

.auth-header p {
  color: #CBD5E1;
  margin-top: 0.5rem;
}

.auth-toggle {
  color: #CBD5E1;
  margin-top: 1.2rem;
  text-align: center;
}

.auth-toggle p {
  color: #CBD5E1;
}

.auth-toggle a,
.forgot-password {
  color: #C4B5FD;
  font-weight: 800;
}

.form-group.full {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.form-group.full input {
  width: 100%;
}

.password-group {
  position: relative;
}

.password-toggle {
  background: transparent;
  border: none;
  color: #CBD5E1;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.5rem;
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
}

.password-toggle img {
  display: block;
  height: 20px;
  width: 20px;
}

.remember-group {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.remember-group label {
  align-items: center;
  color: #F8FAFC;
  display: flex;
  font-weight: 700;
  gap: 0.5rem;
  margin: 0;
}

.remember-group input[type="checkbox"],
label input[type="checkbox"] {
  accent-color: #8B5CF6;
  height: 18px;
  margin: 0;
  width: 18px;
}

.auth-message {
  border: 1px solid rgba(167, 139, 250, 0.22);
  border-radius: 8px;
  margin-top: 1.25rem;
  padding: 1rem;
}

.auth-message[hidden],
.auth-debug-link[hidden] {
  display: none;
}

.auth-message p {
  color: #CBD5E1;
  font-size: 0.95rem;
  margin: 0.35rem 0 0.75rem;
}

.auth-message-success {
  background-color: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.36);
  color: #A7F3D0;
}

.auth-message-warning {
  background-color: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.36);
  color: #FDE68A;
}

.auth-debug-link,
.form-hint {
  color: #CBD5E1;
  display: block;
  font-size: 0.86rem;
  margin-top: 0.75rem;
}

/* LOGIN PAGE */

.login-content {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 450px);
  max-width: 1080px;
  padding: 2rem;
  position: relative;
  width: 100%;
  z-index: 1;
}

.login-content > div:last-child {
  justify-self: end;
  width: 100%;
}

.login-info {
  max-width: 560px;
}

.login-info h2 {
  color: #F8FAFC;
  font-size: 5rem;
  line-height: 0.98;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.login-info p {
  color: #CBD5E1;
  font-size: 1.18rem;
  margin-bottom: 2rem;
  max-width: 520px;
}

.login-benefits {
  display: grid;
  gap: 0.8rem;
  list-style: none;
}

.login-benefits li {
  align-items: center;
  background: rgba(15, 23, 42, 0.54);
  border: 1px solid rgba(167, 139, 250, 0.16);
  border-radius: 8px;
  color: #E2E8F0;
  display: flex;
  gap: 0.85rem;
  margin-bottom: 0;
  padding: 0.85rem 1rem;
}

.login-benefits li::before {
  color: #10B981;
  content: "+";
  font-weight: 900;
  min-width: 18px;
}

/* REGISTER PAGE */

.register-steps {
  display: none;
}

.register-steps.active {
  animation: fadeIn 0.3s ease-in;
  display: block;
}

.step-indicator {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.step {
  background-color: rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  flex: 1;
  height: 5px;
  transition: background-color 0.2s ease;
}

.step.active,
.step.completed {
  background: linear-gradient(90deg, #A78BFA, #7C3AED);
}

.step-number {
  align-items: center;
  background-color: rgba(148, 163, 184, 0.2);
  border-radius: 50%;
  color: #E2E8F0;
  display: inline-flex;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
  width: 32px;
}

.step-number.active {
  background-color: var(--primary);
  color: #ffffff;
}

.step-number.completed {
  background-color: var(--success);
  color: #ffffff;
}

.register-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.register-buttons .btn {
  flex: 1;
}

.payment-summary {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 8px;
  color: #E2E8F0;
  margin-bottom: 2rem;
  padding: 1.5rem;
}

.payment-summary h3,
.payment-summary strong {
  color: #F8FAFC;
}

/* RESPONSIVO */

@media (max-width: 980px) {
  .login-content {
    display: block;
    max-width: 430px;
    padding: 0;
  }

  .login-info {
    display: none;
  }

  .login-content > div:last-child {
    justify-self: auto;
    width: 100%;
  }

  .login-container .auth-card {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .auth-container,
  .login-container {
    align-items: center;
    padding: 1rem;
  }

  .auth-card {
    max-height: none;
    padding: 1.6rem;
  }

  .auth-header {
    margin-bottom: 1.35rem;
  }

  .auth-header h1 {
    font-size: 2rem;
  }

  .login-info h2 {
    font-size: 3rem;
  }

  .login-content {
    display: block;
    max-width: 430px;
    padding: 0;
  }

  .login-info {
    display: none;
  }

  .login-content > div:last-child {
    justify-self: auto;
    width: 100%;
  }

  .login-container .auth-card {
    max-width: 100%;
  }

  .form-group.full {
    grid-template-columns: 1fr;
  }

  .remember-group {
    align-items: flex-start;
    gap: 0.75rem;
  }

  .forgot-password {
    flex: 0 0 auto;
    font-size: 0.82rem;
  }

  .register-buttons {
    flex-direction: column;
  }

  .whatsapp-float {
    bottom: 14px;
    padding: 0.65rem 0.95rem;
    right: 14px;
  }

  .whatsapp-label {
    font-size: 0.82rem;
  }
}
