/* ========== AUTH PAGES (Login / Registro) ========== */

.auth-body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

.auth-body::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.auth-body::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.auth-wrapper {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
  padding: 20px;
  animation: fadeInUp 0.5s ease forwards;
}

.auth-wrapper.register { max-width: 520px; }

.auth-card {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1) inset;
  overflow: hidden;
}

.auth-header {
  padding: 40px 36px 0;
  text-align: center;
}

.auth-header .brand-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 30px;
  margin: 0 auto 18px;
  box-shadow: 0 8px 24px rgba(59,130,246,0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-header .brand-icon:hover {
  transform: rotate(-5deg) scale(1.08);
  box-shadow: 0 12px 32px rgba(59,130,246,0.45);
}

.auth-header h4 {
  font-weight: 800;
  font-size: 22px;
  color: #111827;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.auth-header p {
  color: #6b7280;
  font-size: 14px;
  font-weight: 400;
}

.auth-body-card {
  padding: 32px 36px 36px;
}

.auth-body-card .form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.auth-body-card .form-control {
  background: #f8fafc;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.auth-body-card .form-control:hover {
  border-color: #d1d5db;
}

.auth-body-card .form-control:focus {
  background: #fff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.auth-body-card .input-group-text {
  background: #f1f5f9;
  border: 1.5px solid #e5e7eb;
  border-right: none;
  color: #9ca3af;
  border-radius: 10px 0 0 10px;
  padding: 11px 14px;
}

.auth-body-card .input-group .form-control {
  border-left: none;
  border-radius: 0 10px 10px 0;
}

.auth-body-card .input-group:focus-within .input-group-text {
  border-color: #3b82f6;
  background: #eff6ff;
  color: #3b82f6;
}

.auth-body-card .input-group:focus-within .form-control {
  border-color: #3b82f6;
}

.btn-auth {
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 12px;
  border-radius: 12px;
  width: 100%;
  box-shadow: 0 4px 16px rgba(59,130,246,0.3);
  transition: all 0.25s ease;
  letter-spacing: 0.2px;
}

.btn-auth:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59,130,246,0.4);
}

.btn-auth:active {
  transform: translateY(0);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: #d1d5db;
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.auth-register-link {
  text-align: center;
}

.auth-register-link p {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 12px;
}

.btn-auth-register {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  border: 1.5px solid #e5e7eb;
  color: #374151;
  background: #fff;
  transition: all 0.2s ease;
}

.btn-auth-register:hover {
  border-color: #3b82f6;
  color: #3b82f6;
  background: #f0f7ff;
  transform: translateY(-1px);
}

.auth-footer {
  position: fixed;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  z-index: 1;
}

/* Register page extras */
.register-header { padding: 32px 36px 0; text-align: center; }
.register-body { padding: 24px 36px 32px; }

.password-strength { height: 4px; border-radius: 4px; transition: all 0.3s ease; margin-top: 6px; }
.password-strength-bar { height: 100%; border-radius: 4px; transition: width 0.3s ease, background 0.3s ease; }
.strength-text { font-size: 11px; font-weight: 600; margin-top: 4px; }

.form-section-title { font-size: 13px; font-weight: 700; color: #1e293b; padding: 10px 0 6px; border-bottom: 1px solid #e2e8f0; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.form-section-title i { color: #3b82f6; }

/* Tipo toggle */
.tipo-toggle {
  display: flex;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}
.tipo-toggle button {
  flex: 1;
  padding: 10px 0;
  border: none;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tipo-toggle button.active {
  background: var(--gradient-primary);
  color: #fff;
}

/* Password toggle */
.password-wrapper { position: relative; }
.password-wrapper .form-control { padding-right: 40px; }
.toggle-pass {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
}

/* Strength box */
.strength-box {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 8px;
}
.strength-box .title {
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.strength-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #9ca3af;
  padding: 2px 0;
  transition: color 0.2s;
}
.strength-item .icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
  border: 1.5px solid #d1d5db;
  transition: all 0.2s;
}
.strength-item.met { color: #111827; }
.strength-item.met .icon { background: #10b981; border-color: #10b981; color: #fff; }
.strength-bar {
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
}
.strength-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.btn-create {
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 32px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(59,130,246,0.3);
  transition: all 0.25s ease;
  width: 100%;
}
.btn-create:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59,130,246,0.4);
  color: #fff;
}
.btn-create:disabled { opacity: 0.6; transform: none; box-shadow: none; }

.btn-back {
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  border: 1.5px solid #e5e7eb;
  color: #6b7280;
  background: #fff;
  transition: all 0.2s ease;
}
.btn-back:hover { border-color: #d1d5db; color: #374151; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 575.98px) {
  .register-body { padding: 20px 20px 24px; }
  .register-header { padding: 24px 20px 0; }
}

@media (max-width: 768px) {
  .auth-body { justify-content: center !important; padding: 2rem 1rem !important; }
}
