* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'DM Sans', Roboto, Arial, sans-serif;
  background: transparent;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

#img-fondo {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: url('../imagenes/registro.jpeg') center center / cover no-repeat;
    z-index: -1;
}

#img-fondo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,22,40,0.75) 0%, rgba(20,35,60,0.85) 100%);
    z-index: 1;
}

/* Ajustes de grid */
.login-wrapper > * {
  min-width: 0;
}

.left-section, 
.login-card {
  width: 100%;
}

/* Animación general */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Grid principal */
.login-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-content: center;
  gap: 120px;
  max-width: 1200px;
  width: 100%;
  min-height: 90vh;
}

/* ----- Sección izquierda ----- */
.left-section {
  color: white;
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.logo-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.logo {
  width: 130px;
  height: 130px;
  background: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  flex-shrink: 0;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text h1 {
  font-size: 45px;
  font-weight: 600;
}

.logo-text p {
  font-size: 17px;
  opacity: 0.9;
}

.welcome-title {
  font-size: 44px;
  font-weight: 600;
  margin: 1px 0 1px 0;
}

.secondary-message{
    font-size: 44px;
    font-weight: 600;
    margin: 0px 0 10px 0;
    display: block;
    background: linear-gradient(135deg, #e6efff 0%, #76B4FF 50%, #5F8CFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.welcome-description {
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.95;
  margin-bottom: 20px;
}

/* ----- Tarjeta de Login ----- */
.login-card {
  background: white;
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.6s ease-out;
}

.login-title {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #1a202c;
}

.login-subtitle {
  font-size: 14px;
  color: #718096;
  margin-bottom: 32px;
}

/* ----- Inputs ----- */
.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #1a202c;
  margin-bottom: 8px;
}

.input-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.input-group input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.input-group input::placeholder {
  color: #a0aec0;
}

/* ----- Recordar y Olvidar ----- */
.remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 14px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4a5568;
  cursor: pointer;
}

.remember-me input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #667eea;
}

.forgot-password {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}

/* ----- Botón Iniciar Sesión ----- */
.btn-login {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #667eea 0%, #5a67d8 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.4s ease;
}

.btn-login::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.35), rgba(255,255,255,0));
  transition: all 0.6s ease;
}

.btn-login:hover::before {
  left: 100%;
}

.btn-login:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 35px rgba(102,126,234,0.4);
}

/* ----- Divisor ----- */
.divider {
  text-align: center;
  margin: 24px 0;
  color: #a0aec0;
  font-size: 14px;
  position: relative;
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 45%;
  height: 1px;
  background: #e2e8f0;
}

.divider::before { left: 0; }
.divider::after { right: 0; }

/* ----- Botón Registro ----- */
.btn-registro {
  width: 100%;
  padding: 16px;
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.btn-registro:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: #5a67d8;
  color: #5a67d8;
  box-shadow: 0 10px 30px rgba(102,126,234,0.25);
}

/* ----- Mensajes ----- */
.error-message,
.success-message {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  animation: fadeInUp 0.4s ease-out;
}

.error-message {
  background: #fed7d7;
  color: #c53030;
  border-left: 4px solid #c53030;
}

.success-message {
  background: #c6f6d5;
  color: #22543d;
  border-left: 4px solid #22543d;
}

/* Contenedor del enlace */
.volver-inicio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 15px;
  font-weight: 600;
  color: #667eea;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.25s ease;
}

/* Cambio de color al pasar el mouse */
.volver-inicio:hover {
  color: #5a67d8;
}

/* Icono */
.icono-volver {
  width: 30px;
  height: 30px;
  object-fit: contain;
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0.9;
}

/* Animación suave del ícono */
.volver-inicio:hover .icono-volver {
  transform: translateX(-4px);
  opacity: 1;
}
