/* ============================================
   SGL - Auth Pages Styles
   ============================================ */

.auth-body {
  background: var(--gray-50);
  min-height: 100vh;
  overflow: hidden;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* LEFT VISUAL PANEL */
.auth-visual {
  background: linear-gradient(145deg, var(--primary-dark), var(--primary), var(--accent-dark));
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  overflow: hidden;
}

.auth-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.auth-logo {
  position: relative;
  z-index: 1;
  margin-bottom: auto;
}

.auth-visual-content {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-bottom: 2rem;
}

.auth-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.auth-stat {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 1rem;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.15);
}

.as-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
}

.as-label {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

.auth-tagline {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: white;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.auth-visual-desc {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.auth-testimonial {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.15);
}

.auth-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
}

.auth-feature i { color: var(--secondary); font-size: 14px; }

/* RIGHT FORM PANEL */
.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  padding: 2rem;
  overflow-y: auto;
  min-height: 100vh;
}

.auth-form-inner {
  width: 100%;
  max-width: 440px;
}

.auth-mobile-logo {
  display: none;
  margin-bottom: 1.5rem;
}

.auth-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.auth-subtitle {
  color: var(--gray-500);
  margin-bottom: 2rem;
  font-size: 14px;
}

/* Input with icon */
.input-icon-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 14px;
  pointer-events: none;
}

.input-icon-wrapper .form-control {
  padding-left: 40px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  padding: 4px;
  transition: var(--transition);
}

.password-toggle:hover { color: var(--gray-700); }

/* Auth form */
.auth-form, .register-step { width: 100%; }

.register-step { display: none; }
.register-step.active { display: block; }

.auth-submit {
  width: 100%;
  margin-top: 1.5rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1.5rem 0;
  color: var(--gray-400);
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.social-login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.social-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.625rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  background: white;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
}

.social-login-btn:hover {
  border-color: var(--primary-lighter);
  background: var(--gray-50);
}

.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 0.75rem;
}

.auth-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  margin-top: 1px;
  flex-shrink: 0;
}

.auth-checkbox a { color: var(--primary); font-weight: 600; }

.auth-switch {
  text-align: center;
  font-size: 14px;
  color: var(--gray-500);
  margin-top: 1.5rem;
}

.auth-switch a { color: var(--primary); font-weight: 600; }

.auth-lgpd {
  text-align: center;
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 1rem;
  line-height: 1.6;
}

.auth-lgpd a { color: var(--primary); }
.auth-lgpd i { color: var(--success); }

/* PLAN SELECTOR */
.plan-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.plan-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  font-size: 13px;
  color: var(--gray-600);
}

.plan-option i { font-size: 18px; color: var(--gray-400); flex-shrink: 0; }

.plan-option:hover {
  border-color: var(--primary-lighter);
  color: var(--primary);
}

.plan-option.active {
  border-color: var(--primary);
  background: var(--primary-lighter);
  color: var(--primary-dark);
}

.plan-option.active i { color: var(--primary); }

/* STEPS */
.register-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 6px;
}

.rs-step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-400);
  background: white;
  transition: var(--transition);
  flex-shrink: 0;
}

.rs-step.active, .rs-step.done {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.rs-line {
  flex: 1;
  max-width: 60px;
  height: 2px;
  background: var(--gray-200);
}

.rs-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--gray-400);
  margin-bottom: 1.5rem;
}

/* Password Strength */
.password-strength {
  margin-top: 6px;
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--gray-200);
}

.password-strength-bar {
  height: 100%;
  border-radius: 999px;
  transition: all 0.3s ease;
}

/* Consents */
.auth-consents {
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-mobile-logo { display: block; }
  .auth-form-panel { min-height: 100vh; padding: 1.5rem; }
}

@media (max-width: 480px) {
  .plan-selector { grid-template-columns: 1fr; }
  .plan-option { justify-content: center; }
}
