/* Pantallas de entrada: iniciar sesión, confirmar el correo y dar de alta el negocio. */
.center-screen { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth-card { width: min(460px, 100%); padding: 30px; }
.auth-card h1 { font-size: 28px; margin-bottom: 6px; } .auth-card .lead { color: var(--muted); margin: 0 0 18px; }
.auth-card .logo { padding: 0 0 18px; }
.g-btn { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 11px 16px; display: flex; gap: 10px; justify-content: center; align-items: center; font-weight: 500; }
.g-btn:hover { background: #fbfaff; }
.or { display: flex; align-items: center; gap: 12px; color: var(--soft); font-size: 13px; margin: 16px 0; } .or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.msg { border-radius: 14px; padding: 10px 14px; font-size: 14px; margin-top: 10px; } .msg.err { background: var(--bad-l); color: #8A2434; } .msg.ok { background: var(--ok-l); color: #1F6B49; }
.ob-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .ob-grid .full { grid-column: 1 / -1; }
.onboard-card { width: min(720px, 100%); padding: 30px; }
@media (max-width: 640px) { .ob-grid { grid-template-columns: 1fr; } .auth-card, .onboard-card { padding: 22px; } }

/* Entrar / crear cuenta: formulario a la izquierda y el mundo lila de la página de inicio a la derecha */
.auth-split { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: radial-gradient(900px 600px at -10% 10%, #F6E1EE 0%, transparent 60%), #F7F3FC; }
.auth-lado { display: flex; flex-direction: column; padding: 28px clamp(20px, 5vw, 64px); min-width: 0; }
.auth-volver { align-self: flex-start; color: #5F5A6E; text-decoration: none; font-size: 14px; }
.auth-volver:hover { color: #17151C; }
.auth-caja { width: min(420px, 100%); margin: auto 0; padding: 40px 0; }
.auth-caja h1 { font-size: clamp(34px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 10px; }
.auth-caja .lead { color: #5F5A6E; font-size: 16px; margin: 0 0 24px; }
.auth-caja .inp { border-radius: 14px; background: #fff; }
.auth-caja .g-btn { border-radius: 999px; background: #fff; }
.auth-caja .btn { border-radius: 999px; }
.auth-arte { position: relative; margin: 14px 14px 14px 0; border-radius: 34px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 48px 48px 0;
  background: radial-gradient(700px 500px at 100% 0%, #E3D2F8 0%, transparent 60%), radial-gradient(600px 500px at 0% 100%, #F6DCEB 0%, transparent 60%), linear-gradient(160deg, #EFE6FB, #F5ECF7); }
.auth-arte-txt { position: relative; z-index: 2; max-width: 460px; }
.auth-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #6E50AE; }
.auth-eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #8B6CC9, #C77DB4); }
.auth-frase { margin: 0; font-size: clamp(30px, 3vw, 42px); line-height: 1.08; font-weight: 600; letter-spacing: -.03em; color: #17151C; }
.auth-frase em { font-style: normal; background: linear-gradient(90deg, #7E5DC4, #C77DB4, #7E5DC4); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: auth-brillo 6s linear infinite; }
.auth-tel { position: relative; z-index: 2; align-self: center; width: min(330px, 100%); margin-top: 36px; background: #F5F1FB; border: 10px solid #fff; border-bottom: 0; border-radius: 40px 40px 0 0; box-shadow: 0 0 0 1px #E6DFF2, 0 40px 70px -30px rgba(90, 60, 160, .5); overflow: hidden; }
.auth-tel-top { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #fff; border-bottom: 1px solid #E6DFF2; }
.auth-tel-top b { display: block; font-size: 14.5px; }
.auth-tel-top span { font-size: 12px; color: #5F5A6E; }
.auth-av { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #D9C8F5, #F3D3E4); color: #6E50AE; display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; }
.auth-chat { display: flex; flex-direction: column; gap: 8px; padding: 14px 12px 6px; }
.am { max-width: 86%; padding: 9px 12px; border-radius: 16px; font-size: 13.5px; line-height: 1.4; color: #17151C; opacity: 0; animation: auth-entra .5s ease forwards; }
.am small { display: block; font-size: 10.5px; font-weight: 600; color: #6E50AE; margin-bottom: 2px; }
.am.cl { align-self: flex-end; background: linear-gradient(135deg, #E9DEFB, #F6E2EF); border-bottom-right-radius: 4px; }
.am.as { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(60, 40, 110, .07); }
.am:nth-child(1) { animation-delay: .4s; } .am:nth-child(2) { animation-delay: 1.3s; } .am:nth-child(3) { animation-delay: 2.2s; } .am:nth-child(4) { animation-delay: 3.1s; }
.auth-tel-nota { margin: 0; padding: 8px 0 16px; text-align: center; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #5F5A6E; }
.auth-ov { position: absolute; z-index: 1; border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%; box-shadow: inset -6px -10px 18px rgba(0, 0, 0, .08), inset 6px 8px 14px rgba(255, 255, 255, .45); animation: auth-flota 8s ease-in-out infinite; }
.auth-ov.o1 { width: 120px; height: 168px; background: linear-gradient(160deg, #E6D8F8, #C2A8EC); left: 8%; bottom: 30%; --r: -18deg; }
.auth-ov.o2 { width: 90px; height: 126px; background: linear-gradient(160deg, #FBE6F0, #EEC3DA); right: 8%; bottom: 14%; --r: 16deg; animation-duration: 6.5s; animation-delay: -2s; }
.auth-ov.o3 { width: 64px; height: 90px; background: linear-gradient(160deg, #A98BE0, #7C5CC2); left: 18%; bottom: 8%; --r: 8deg; animation-duration: 9s; animation-delay: -4s; }
.auth-ov.o4 { width: 70px; height: 98px; background: linear-gradient(160deg, #F7E3EE, #E9C6DC); right: 10%; top: 10%; --r: -10deg; animation-duration: 7.5s; animation-delay: -1s; opacity: .8; }
@keyframes auth-flota { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-16px) rotate(calc(var(--r, 0deg) + 8deg)); } }
@keyframes auth-entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes auth-brillo { to { background-position: 200% center; } }
@media (max-width: 900px) { .auth-split { grid-template-columns: 1fr; } .auth-arte { display: none; } .auth-caja { margin: 24px auto; } }
@media (prefers-reduced-motion: reduce) { .auth-ov, .auth-frase em { animation: none; } .am { animation: none; opacity: 1; } }

/* Teléfono grande: ocupa casi todo el panel */
.auth-arte { padding: 44px 44px 0; gap: 28px; }
.auth-tel { flex: 1; display: flex; flex-direction: column; width: min(560px, 88%); margin-top: 0; border-width: 12px; border-radius: 48px 48px 0 0; }
.auth-tel-top { padding: 18px 22px; gap: 14px; }
.auth-tel-top b { font-size: 18px; }
.auth-tel-top span { font-size: 14px; }
.auth-av { width: 48px; height: 48px; font-size: 16px; }
.auth-chat { flex: 1; justify-content: flex-end; gap: 12px; padding: 22px 18px 10px; }
.am { font-size: 16.5px; padding: 12px 16px; border-radius: 20px; max-width: 82%; }
.am small { font-size: 12px; }
.am:nth-child(5) { animation-delay: 4s; } .am:nth-child(6) { animation-delay: 4.9s; }
.auth-tel-nota { font-size: 11.5px; padding: 10px 0 18px; }
@media (max-height: 780px) { .am { font-size: 15px; padding: 10px 14px; } .auth-chat { gap: 9px; } }

/* El panel mide lo que la pantalla; si no caben todos los mensajes se ocultan los más viejos (como en WhatsApp) */
.auth-arte { position: sticky; top: 14px; height: calc(100vh - 28px); min-height: 560px; }
.auth-tel, .auth-chat { min-height: 0; }
.auth-chat { overflow: hidden; }
