/* ======= Premium Split-Screen Design ======= */
:root {
  --blue-primary: #4285f4;
  --blue-dark: #1266f1;
  --blue-bg: #f8fbff;
  --white: #ffffff;
  --text-main: #333333;
  --text-muted: #666666;
  --border-color: #e0e6ed;
  --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  height: 100vh;
  background: var(--white);
  overflow: hidden;
}

.login-page {
  display: flex;
  height: 100%;
  width: 100%;
}

/* ======= LADO BRANDING (Izquierdo) ======= */
.brand-side {
  flex: 1.2;
  background: linear-gradient(135deg, #4285f4 0%, #2a5298 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: var(--white);
}

.brand-content {
  text-align: center;
  max-width: 450px;
}

.brand-content .logo {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.brand-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.brand-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  line-height: 1.5;
}

/* ======= LADO FORMULARIO (Derecho) ======= */
.form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-bg);
  padding: 40px;
}

.form-container {
  background: var(--white);
  width: 100%;
  max-width: 400px;
  padding: 48px;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
  text-align: center;
}

.form-header h2 {
  font-size: 2rem;
  color: var(--text-main);
  margin-bottom: 8px;
  font-weight: 700;
}

.form-header p {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 0.95rem;
}

/* ======= BOTÓN GOOGLE (Estilo Google Oficial) ======= */
.google-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid #dadce0;
  color: #3c4043;
  padding: 14px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.2s ease;
  width: 100%;
}

.google-link:hover {
  background: #f8f9fa;
  border-color: #d2e3fc;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
}

.google-link img {
  width: 20px;
  height: 20px;
}

/* ======= ERRORES ======= */
#formRegistro p {
  background: #fef2f2;
  color: #dc2626;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #fee2e2;
  margin-top: 24px;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* ======= FOOTER ======= */
.form-footer {
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ======= RESPONSIVE ======= */
@media (max-width: 1024px) {
  .brand-content h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 850px) {
  .login-page {
    flex-direction: column;
  }

  .brand-side {
    padding: 60px 20px;
    flex: 0.6;
  }

  .brand-content .logo {
    width: 180px;
  }

  .brand-content h1 {
    font-size: 2.2rem;
  }

  .brand-content p {
    font-size: 1rem;
  }

  .form-side {
    padding: 30px 20px;
    flex: 1;
    align-items: flex-start;
  }

  .form-container {
    max-width: 100%;
    padding: 32px 24px;
    border-radius: 20px;
  }
}