/* ==========================================================================
   1. Reset & Variables Globales (Tema Oscuro INGACAD)
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

:root {
  --bg-dark: #0b1120;
  --bg-card: #1e293b;
  --bg-card-inner: #131d31;
  --bg-input: #111827;
  --border-color: #334155;
  --border-focus: #facc15;
  --primary-gold: #facc15;
  --primary-gold-hover: #eab308;
  --text-white: #ffffff;
  --text-muted: #94a3b8;
  --text-gold: #fde047;
  --error-bg: #450a0a;
  --error-text: #fca5a5;
  --success-bg: #052e16;
  --success-text: #86efac;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-white);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* ==========================================================================
   2. Layout Principal (Dos Columnas)
   ========================================================================== */
.main-wrapper {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* --- Columna Izquierda: Logo, Banner & Beneficios --- */
.hero-section {
  display: flex;
  flex-direction: column;
}

/* Contenedor del Logo */
.hero-section .logo,



    .logo {
      margin-bottom: 40px;
    }

    .logo img {
      width: 120px;
      height: auto;
      filter: drop-shadow(0 5px 15px rgba(212, 175, 55, 0.3));
    }


/* Imagen del Logo con Puntas Bordeadas */
.hero-section .logo img,
.logo img {
  width: 100% !important;
  max-width: 220px !important;
  height: auto !important;
  max-height: 90px !important;
  object-fit: cover !important;
  display: block !important;
  
  /* BORDES REDONDEADOS */
  border-radius: 14px !important;
  overflow: hidden !important;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-gold);
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.hero-card {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.hero-card-title {
  color: var(--primary-gold);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-icon {
  width: 38px;
  height: 38px;
  background: var(--primary-gold);
  color: #000;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.feature-text h4 {
  color: var(--text-white);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
}

.feature-text p {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 2px;
}

/* --- Columna Derecha: Formulario (.card-container) --- */
.card-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.card-header {
  margin-bottom: 20px;
}

.card-header h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 4px;
}

.card-header p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ==========================================================================
   3. Formulario, Inputs y Botón de Ojo
   ========================================================================== */
.form-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--text-white);
  font-weight: 600;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper input {
  width: 100%;
  padding: 11px 42px 11px 14px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-white);
  outline: none;
  transition: all 0.2s ease;
}

.input-wrapper input::placeholder {
  color: #4b5563;
}

.input-wrapper input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.2);
}

/* Botón Mostrar/Ocultar Contraseña */
.btn-toggle-password {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: 4px;
  transition: color 0.2s;
}

.btn-toggle-password:hover {
  color: var(--primary-gold);
}

.btn-toggle-password svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

/* Checkbox */
.checkbox-group {
  margin-top: 2px;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
}

.custom-checkbox a {
  color: var(--primary-gold);
  text-decoration: none;
}

.custom-checkbox a:hover {
  text-decoration: underline;
}

/* Mensajes de feedback */
#registration-message {
  font-size: 0.85rem;
  border-radius: 6px;
  text-align: center;
}

#registration-message.error {
  padding: 10px 12px;
  background-color: var(--error-bg);
  color: var(--error-text);
  border: 1px solid #7f1d1d;
}

#registration-message.success {
  padding: 10px 12px;
  background-color: var(--success-bg);
  color: var(--success-text);
  border: 1px solid #14532d;
}

/* ==========================================================================
   4. Botones
   ========================================================================== */
.btn-primary {
  width: 100%;
  padding: 12px;
  background: var(--primary-gold);
  color: #000000;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
  background: var(--primary-gold-hover);
}

.btn-primary:active {
  transform: scale(0.99);
}

.btn-google {
  width: 100%;
  padding: 11px;
  background-color: var(--bg-input);
  color: var(--text-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-transform: uppercase;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-google:hover {
  background-color: #1f2937;
  border-color: var(--text-muted);
}

.login-link {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.login-link a {
  color: var(--primary-gold);
  text-decoration: none;
  font-weight: 600;
}

.login-link a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   5. Responsivo
   ========================================================================== */
@media (max-width: 900px) {
  .main-wrapper {
    grid-template-columns: 1fr;
  }
  
  .hero-section {
    display: none;
  }
}