/* Estilos base para autenticación */
:root {
  --auth-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
  --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.1);
  --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.auth-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f7fe;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

.auth-section::before {
  content: '';
  position: absolute;
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(118, 75, 162, 0.05) 0%, rgba(102, 126, 234, 0.05) 100%);
  border-radius: 50%;
  top: -400px;
  right: -300px;
  z-index: 0;
}

.auth-wrapper {
  display: flex;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  box-shadow: var(--shadow-premium);
  overflow: hidden;
  width: 100%;
  max-width: 1000px;
  min-height: 600px;
  transition: var(--transition-smooth);
  position: relative;
  z-index: 1;
  animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.back-btn {
  position: absolute;
  top: 30px;
  left: 30px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 12;
  transition: var(--transition-smooth);
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(5px);
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(-5px);
}

.auth-info {
  flex: 1.2;
  background: var(--auth-gradient);
  color: white;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-info-content {
  position: relative;
  z-index: 2;
  animation: fadeIn 1s ease-out 0.3s both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-info h2 {
  font-size: 3rem;
  margin-bottom: 25px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
}

.auth-info p {
  font-size: 1.2rem;
  margin-bottom: 45px;
  opacity: 0.95;
  line-height: 1.6;
  font-weight: 300;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 1.1rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.auth-feature:hover {
  transform: translateX(10px);
}

.auth-feature i {
  font-size: 1.4rem;
  color: #764ba2;
  background: white;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.auth-container {
  flex: 1;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: white;
  animation: fadeInRight 0.8s ease-out 0.2s both;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.auth-header {
  text-align: left;
  margin-bottom: 40px;
}

.auth-header h1 {
  color: #333;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.auth-header p {
  color: #777;
  font-size: 1.1rem;
}

/* Forms */
.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: #444;
  font-weight: 700;
  font-size: 0.95rem;
}

.input-with-icon {
  position: relative;
}

.input-with-icon input {
  width: 100%;
  padding: 16px 15px 16px 50px;
  border: 2px solid #edf2f7;
  border-radius: 18px;
  font-size: 1rem;
  transition: var(--transition-smooth);
  box-sizing: border-box;
  background: #fafdff;
}

.input-with-icon i:first-child {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
  transition: var(--transition-smooth);
}

.input-with-icon input:focus {
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  outline: none;
}

.input-with-icon .toggle-password {
  position: absolute;
  right: 18px;
  left: auto !important;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #a0aec0;
  z-index: 2;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.input-with-icon .toggle-password:hover {
  color: #667eea;
}

.input-with-icon.has-toggle input {
  padding-right: 50px !important; 
}

/* Password strength indicator */
.password-strength {
  margin-top: 15px;
  animation: fadeIn 0.5s ease-out;
}

.strength-meter {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.strength-segment {
  height: 6px;
  flex: 1;
  background-color: #edf2f7;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.strength-segment.weak { background-color: #f56565; box-shadow: 0 0 10px rgba(245, 101, 101, 0.2); }
.strength-segment.medium { background-color: #ed8936; box-shadow: 0 0 10px rgba(237, 137, 54, 0.2); }
.strength-segment.strong { background-color: #48bb78; box-shadow: 0 0 10px rgba(72, 187, 120, 0.2); }

.strength-text {
  font-size: 0.85rem;
  color: #718096;
  font-weight: 500;
}

.form-options {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 30px;
}

.forgot-password {
  color: #667eea;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.forgot-password:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* Buttons */
.btn-primary {
  background: var(--auth-gradient);
  color: white;
  border: none;
  padding: 18px 30px;
  border-radius: 18px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
  width: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
  transform: translateY(-1px);
}

/* Footer sections */
.resend-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #f0f0f0;
  text-align: center;
}

.resend-section p {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.resend-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.btn-outline {
  background: transparent;
  color: #718096;
  border: 2px solid #e2e8f0;
  padding: 14px 20px;
  border-radius: 15px;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.btn-outline:hover {
  background: #f7fafc;
  border-color: #cbd5e0;
  color: #4a5568;
}

.register-section {
  margin-top: 25px;
  text-align: center;
}

.register-section p {
  font-size: 1rem;
  color: #4a5568;
}

.register-section a {
  color: #667eea;
  font-weight: 700;
  text-decoration: none;
}

.register-section a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .auth-wrapper {
    flex-direction: column;
    max-width: 500px;
  }
  
  .auth-info {
    padding: 60px 40px 40px;
  }

  .auth-info h2 {
    font-size: 2.2rem;
  }

  .auth-container {
    padding: 40px;
  }
}

@media (max-width: 480px) {
  .auth-section {
    padding: 0;
  }
  
  .auth-wrapper {
    border-radius: 0;
    min-height: 100vh;
  }
  
  .auth-container {
    padding: 30px 20px;
  }
}

