body { overflow: hidden; }

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

.auth-brand {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 100%);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.auth-brand .logo {
  margin-bottom: 20px;
}

.auth-brand .logo-vive {
  font-size: 28px;
  color: white;
}

.auth-brand .logo-mas {
  font-size: 28px;
  color: var(--accent);
}

.auth-brand h2 {
  font-size: 36px;
  color: white;
  line-height: 1.2;
}

.auth-brand p {
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  line-height: 1.6;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

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

.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--bg-secondary);
  overflow-y: auto;
}

.auth-form-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.auth-form-box h1 {
  font-size: 28px;
  margin-bottom: 8px;
  color: var(--text);
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 32px;
}

.auth-subtitle a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.auth-subtitle a:hover {
  text-decoration: underline;
}

.form-grupo {
  margin-bottom: 20px;
}

.form-grupo label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg-secondary);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.form-input:focus {
  border-color: var(--primary);
  background: white;
}

.form-input::placeholder {
  color: #c4c9d4;
}

.auth-divider {
  text-align: center;
  color: var(--text-light);
  font-size: 13px;
  margin: 20px 0;
  position: relative;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--border);
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 20px;
}

.alert-error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.alert-success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.planes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.plan-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

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

.plan-card.selected {
  border-color: var(--primary);
  background: #f0f7f4;
}

.plan-card.selected.premium {
  border-color: var(--accent-dark);
  background: #fff8f0;
}

.plan-nombre {
  font-size: 15px;
  font-weight: 700;
  font-family: 'Bricolage Grotesque', sans-serif;
  margin-bottom: 4px;
  color: var(--text);
}

.plan-precio {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.plan-features {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.8;
  text-align: left;
}

/* ===========================================
 PREMIUM PASSWORD INPUT - SAAS STYLE
=========================================== */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* Input height and styling - Premium SaaS */
.password-input-wrapper .form-input {
  padding-right: 52px;
  height: 52px;
  font-size: 15px;
  border-radius: 12px;
  background: var(--bg);
  transition: all 0.2s ease;
}

.password-input-wrapper .form-input:hover {
  border-color: #c4c9d4;
}

.password-input-wrapper .form-input:focus {
  border-color: var(--primary);
  background: var(--bg);
  box-shadow: 0 0 0 4px rgba(26, 71, 42, 0.1);
}

/* Premium toggle button */
.password-toggle {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: all 0.2s ease;
  border-radius: 8px;
}

.password-toggle:hover {
  color: var(--text);
  background: var(--bg-secondary);
}

.password-toggle:active {
  background: var(--border);
}

.password-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.password-toggle:hover .password-icon {
  opacity: 1;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus visible for accessibility */
.password-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  body { overflow: auto; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-form-panel { padding: 24px 16px; min-height: 100vh; }
  .auth-form-box { padding: 32px 24px; }
  .planes-grid { grid-template-columns: 1fr; }
}
