/* La puerta de Creative House: vestido sobre la pantalla de entrada de Chatwoot.
   Solo actúa dentro del <main> de las páginas de acceso (login, registro, restablecer).
   Chatwoot no se modifica: esta hoja se carga desde la plantilla montada por desplegar.sh. */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&display=swap');

:root {
  --ch-papel: #f6f3ee;
  --ch-papel-2: #ecE7df;
  --ch-tinta: #17130f;
  --ch-tinta-2: #6b645c;
  --ch-acento: #f25f4c;
  --ch-radio: 14px;
}

/* Fondo: papel con grano real */
main.min-h-screen.py-20 {
  position: relative;
  background: var(--ch-papel) !important;
  color: var(--ch-tinta) !important;
  padding-top: 9vh !important;
  padding-bottom: 6vh !important;
  min-height: 100dvh;
  isolation: isolate;
}
main.min-h-screen.py-20::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .16;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.09 0 0 0 0 0.075 0 0 0 0 0.06 0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
  background-size: 260px 260px;
}
main.min-h-screen.py-20::after {
  /* una luz cálida arriba a la izquierda, apenas */
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(60% 45% at 30% 0%, rgba(242, 95, 76, .10), transparent 70%);
}

/* Cabecera: logo grande y una palabra */
main.min-h-screen.py-20 > section:first-child { max-width: 360px !important; padding: 0 20px; }
main.min-h-screen.py-20 > section:first-child img {
  height: 96px !important;
  width: auto !important;
  filter: drop-shadow(0 10px 18px rgba(23, 19, 15, .14));
}
main.min-h-screen.py-20 > section:first-child img.dark\:block { display: none !important; }
main.min-h-screen.py-20 > section:first-child img.dark\:hidden { display: block !important; }
main.min-h-screen.py-20 h2 {
  font-size: 0 !important;
  line-height: 0 !important;
  margin-top: 28px !important;
  color: var(--ch-tinta) !important;
}
main.min-h-screen.py-20 h2::before {
  content: 'Bienvenido';
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-align: center;
}

/* La tarjeta desaparece: el formulario va sobre el papel */
main.min-h-screen.py-20 > section:not(:first-child) {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 20px !important;
  margin: 40px auto 0 !important;
  max-width: 360px !important;
  width: 100% !important;
}

/* Campos: altos, sin borde, relleno apenas más oscuro que el papel */
main.min-h-screen.py-20 form { display: flex; flex-direction: column; gap: 18px; }
main.min-h-screen.py-20 form label {
  color: var(--ch-tinta-2) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: .01em;
  margin-bottom: 8px !important;
}
main.min-h-screen.py-20 form input {
  height: 56px !important;
  background: var(--ch-papel-2) !important;
  border: 0 !important;
  border-radius: var(--ch-radio) !important;
  padding: 0 18px !important;
  font-size: 16px !important;   /* 16 evita el zoom del iPhone */
  color: var(--ch-tinta) !important;
  box-shadow: inset 0 0 0 1px rgba(23, 19, 15, .04) !important;
  transition: box-shadow .15s ease, background .15s ease;
}
main.min-h-screen.py-20 form input::placeholder { color: rgba(107, 100, 92, .55) !important; }
main.min-h-screen.py-20 form input:focus,
main.min-h-screen.py-20 form input:focus-visible {
  outline: none !important;
  background: #fff !important;
  box-shadow: 0 0 0 2px var(--ch-acento) !important;   /* el único color vivo */
}
main.min-h-screen.py-20 form input[type='password'] { padding-right: 52px !important; }
/* «¿Olvidaste tu contraseña?» no funciona sin correo saliente: fuera hasta que lo haya */
main.min-h-screen.py-20 form a[href*='reset'] { display: none !important; }

/* Botón: ancho, de tinta */
main.min-h-screen.py-20 form button[type='submit'] {
  height: 56px !important;
  margin-top: 6px;
  background: var(--ch-tinta) !important;
  color: var(--ch-papel) !important;
  border: 0 !important;
  border-radius: var(--ch-radio) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: .01em;
  box-shadow: 0 10px 24px -12px rgba(23, 19, 15, .5);
  transition: transform .08s ease, background .15s ease;
}
main.min-h-screen.py-20 form button[type='submit']:hover { background: #2a241d !important; }
main.min-h-screen.py-20 form button[type='submit']:active { transform: scale(.99); }
main.min-h-screen.py-20 form button[type='submit']:focus-visible { box-shadow: 0 0 0 2px var(--ch-papel), 0 0 0 4px var(--ch-acento) !important; }

/* Error: el mismo acento, sin rojo de sistema */
main.min-h-screen.py-20 form input[aria-invalid='true'],
main.min-h-screen.py-20 form .error input { box-shadow: 0 0 0 2px var(--ch-acento) !important; }

/* Pie: una línea discreta */
main.min-h-screen.py-20 > section:not(:first-child)::after {
  content: 'Creative House · la herramienta del dueño';
  display: block;
  margin-top: 36px;
  text-align: center;
  font-size: 12px;
  color: rgba(107, 100, 92, .8);
  letter-spacing: .02em;
}

/* Celular */
@media (max-width: 480px) {
  main.min-h-screen.py-20 { padding-top: 7vh !important; }
  main.min-h-screen.py-20 h2::before { font-size: 36px; }
}
