/* ---------- Layout de Autenticación ---------- */
.auth-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(46,134,199,.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(4,55,104,.05), transparent 50%),
    var(--bg);
  padding: 24px;
}

.auth-main {
  width: 100%;
  max-width: 460px;
}

/* ---------- Tarjeta de Login ---------- */
.auth-card {
  background: var(--paper);
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: 0 12px 36px rgba(11,31,51,.08);
  border: 1px solid rgba(212,222,232,.6);
}

.auth-header {
  text-align: center;
  margin-bottom: 36px;
}

.auth-logo {
  display: inline-flex;
  justify-content: center;
  margin-bottom: 24px;
}

.auth-logo img {
  height: 56px;
  width: auto;
}

.auth-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 8px;
}

.auth-subtitle {
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 32ch;
}

/* ---------- Formularios ---------- */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}


.form-input:focus {
  outline: none;
  border-color: var(--sky);
  background: var(--paper);
  box-shadow: 0 0 0 4px var(--sky-light); 
}

.form-help {
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ---------- Botón y Footer ---------- */
.auth-btn {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1.05rem;
  margin-top: 8px;
}

.auth-footer {
  margin-top: 32px;
  text-align: center;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.auth-link {
  color: var(--sky);
  font-weight: 700;
  transition: color .2s ease;
}

.auth-link:hover {
  color: var(--coral);
  text-decoration: underline;
}


@media (max-width: 560px) {
  .auth-card {
    padding: 40px 24px;
  }
}
/* ---------- LAYOUT SPLIT SCREEN ---------- */
.auth-page {
  margin: 0;
  background: linear-gradient(135deg, var(--ink) 0%, var(--coral) 100%);
  min-height: 100vh;
  position: relative;
}
.auth-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%; 
  height: 100%;
  background: var(--bg);
  z-index: 0;
}

.auth-split {
  position: relative;
  z-index: 1; 
  display: grid;
  grid-template-columns: 1fr 1.1fr; 
  min-height: 100vh;
  width: 100%;
  max-width: 1440px; 
  margin: 0 auto; 
}

/* ---------- COLUMNA IZQUIERDA (CONTENIDO) ---------- */
.auth-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; 
  background: transparent; 
  padding: 40px 6vw;
}

.auth-content__inner {
  width: 100%;
  max-width: 420px;
  margin-left: auto; 
  margin-right: auto;
}

.auth-logo {
  display: inline-block;
  margin-bottom: 48px;
}

.auth-logo img {
  height: 48px;
  width: auto;
}

.auth-header {
  margin-bottom: 32px;
}

.auth-header h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.auth-header p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

/* ---------- FORMULARIO ---------- */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder {
  color: #9AB0C4;
}

.form-input:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 4px var(--sky-light);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -8px; 
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
}

.form-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--coral);
  cursor: pointer;
}

.auth-btn {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1.05rem;
  margin-top: 8px;
}

.auth-link {
  color: var(--sky);
  font-weight: 700;
  transition: color 0.2s ease;
}

.auth-link:hover {
  color: var(--coral);
  text-decoration: underline;
}

.auth-link--small {
  font-size: 0.9rem;
}

.auth-footer {
  margin-top: 40px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ---------- COLUMNA DERECHA (VISUAL) ---------- */
.auth-visual {
  background: transparent; 
  display: flex;
  align-items: center;
  justify-content: center; 
  position: relative;
  overflow: hidden;
  padding-left: 5%;
}

.auth-blob {
  width: 100%;
  max-width: 580px;
  aspect-ratio: 1 / 1;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; 
  background-color: var(--paper);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
  margin: 40px;
}

.auth-blob img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.floating-badge {
  position: absolute;
  bottom: 12%;
  left: 10%; 
  background: var(--paper);
  padding: 16px 24px;
  border-radius: 100px;
  box-shadow: 0 12px 30px rgba(11, 31, 51, 0.12);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.floating-badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--sky);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .auth-split {
    grid-template-columns: 1fr 1fr; 
  }
}

@media (max-width: 800px) {
  .auth-split {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    min-height: auto;
  }
  
  .auth-page {
    background: linear-gradient(135deg, var(--ink) 0%, var(--coral) 100%);
  }

  .auth-page::before {
    display: none;
  }

  .auth-content {
    order: 2; 
    padding: 40px 24px 60px;
    margin-top: 0;
    background: var(--bg);
    border-radius: 32px 32px 0 0;
  }

  .auth-visual {
    order: 1;
    padding: 40px 24px;
  }

  .auth-blob {
    max-width: 320px;
    margin: 0 auto;
    border-radius: 50% 50% 40% 60% / 50% 40% 60% 50%;
  }

  .floating-badge {
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
  }
}