/* ==========================================================
   PROFEKIT — Login (pantalla dividida)
   Paleta: crema cálido + verde bosque + acentos naranja/azul
   Tipografía: Fraunces (títulos) + Plus Jakarta Sans (cuerpo/UI)
   ========================================================== */

:root {
  --bg-cream: #FBF8F1;
  --ink: #1E2A28;
  --ink-soft: #5B6864;
  --green: #1F7A5C;
  --green-deep: #14503C;
  --green-tint: #E6F2EC;
  --orange: #E1762E;
  --blue: #4E8FC0;
  --card-bg: #FFFFFF;
  --card-border: #E9E3D6;
  --shadow: 0 10px 30px rgba(30, 42, 40, 0.08);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--font-body);
  color: var(--ink);
}

body { overflow: hidden; }
@media (max-width: 860px) { body { overflow: auto; } }

/* ---------- Pantalla dividida ---------- */
.split {
  display: flex;
  height: 100dvh;
  width: 100%;
}
@media (max-width: 860px) {
  .split { flex-direction: column; height: auto; min-height: 100dvh; }
}

/* ---------- Panel de marca (izquierda) ---------- */
.split__brand {
  position: relative;
  flex: 1.35 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 76px);
  background-image: url("../img/fondos/lateral_izq.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}
.split__brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(20,80,60,0.94) 0%, rgba(20,80,60,0.86) 45%, rgba(225,118,46,0.55) 100%);
}
@media (max-width: 860px) {
  .split__brand { flex: none; padding: 36px 24px; min-height: 320px; }
}

.brand__content { position: relative; z-index: 1; max-width: 480px; }

.brand__logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 20px;
  padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  margin-bottom: clamp(18px, 3vh, 30px);
}
.brand__logo-badge img { height: clamp(40px, 5vh, 56px); width: auto; display: block; }

.brand__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.brand__tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  opacity: 0.92;
  margin: 0 0 clamp(24px, 4vh, 40px);
}

.brand__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.2vh, 20px);
}
.brand__features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.brand__features .icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255,255,255,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}
.brand__features strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1px;
}
.brand__features span.desc {
  display: block;
  font-size: 0.84rem;
  opacity: 0.85;
  line-height: 1.4;
}

/* ---------- Panel de formulario (derecha) ---------- */
.split__form {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--bg-cream);
  padding: clamp(28px, 4vw, 56px);
}
@media (max-width: 860px) {
  .split__form { flex: none; padding: 32px 22px 48px; }
}

.form-lang {
  position: absolute;
  top: 20px;
  right: 20px;
}

.login-card {
  width: 100%;
  max-width: 380px;
}

.login-card__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(20px, 3.5vh, 32px);
}
.login-card__logo img { height: 34px; width: auto; }
.login-card__logo span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green-deep);
}

.login-card h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 1.85rem);
  color: var(--ink);
  margin: 0 0 6px;
}
.login-card__sub {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0 0 clamp(20px, 3.5vh, 28px);
}

/* Botón Google */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1.5px solid var(--card-border);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 20px;
  width: 100%;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.btn-google:hover { border-color: var(--green); transform: translateY(-1px); }
.btn-google__icon { width: 18px; height: 18px; }

/* Separador */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: clamp(18px, 3vh, 24px) 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--card-border);
}

/* Pestañas iniciar sesión / crear cuenta */
.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--green-tint);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: clamp(16px, 2.8vh, 22px);
}
.auth-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--green-deep);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.auth-tab--active { background: var(--green-deep); color: #fff; }

/* Formulario email */
.auth-field { margin-bottom: 14px; }
.auth-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 5px;
}
.auth-field input {
  width: 100%;
  border: 1.5px solid var(--card-border);
  border-radius: 10px;
  padding: 11px 13px;
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  background: #fff;
  transition: border-color 0.15s ease;
}
.auth-field input:focus { border-color: var(--green); }

.btn-submit {
  width: 100%;
  border: none;
  border-radius: 12px;
  background: var(--green-deep);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 20px;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-submit:hover { background: var(--green); transform: translateY(-1px); }

.forgot-link {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.forgot-link:hover { color: var(--green-deep); }

/* ---------- Selector de idioma ---------- */
.lang-switch {
  display: flex;
  gap: 4px;
  background: rgba(30, 42, 40, 0.05);
  border-radius: 999px;
  padding: 3px;
}
.lang-btn {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-btn--active {
  background: var(--green-deep);
  color: #fff;
}
