/* Hunchway · pagine Accedi e Registrati */
.auth { min-height: 100svh; display: grid; grid-template-columns: 1fr; background: var(--bg); }
@media (min-width: 1024px) { .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.auth-side { padding: 12px; display: none; }
@media (min-width: 1024px) { .auth-side { display: block; } }
.auth-panel { position: relative; height: 100%; min-height: 560px; border-radius: 28px; overflow: hidden; background: #F7F6F3; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 56px; }
.auth-panel .hero-dots, .auth-panel .hero-clouds { z-index: 0; }
.auth-panel > .inner { position: relative; z-index: 1; width: 100%; max-width: 440px; }

.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field .ctl { position: relative; }
.field input { width: 100%; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: #fff; padding: 0 16px; font-size: 15px; color: var(--ink); outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.field input::placeholder { color: #9A9DA3; }
.field input:focus { border-color: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.field.err input { border-color: #EF4444; box-shadow: none; }
.field.err input:focus { box-shadow: 0 0 0 4px #FEE2E2; }
.field .msg { min-height: 0; margin-top: 6px; font-size: 13px; color: var(--muted); }
.field.err .msg { color: #DC2626; }
.field .eye { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); }
.field .eye:hover { background: var(--soft); color: var(--ink); }
.field .eye [hidden] { display: none; }
.field .has-eye { padding-right: 48px; }

.btn-social { display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px; height: 48px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 15px; color: var(--ink); transition: background-color .15s ease, border-color .15s ease; }
.btn-social:hover { background: var(--soft); }
.btn-social img { width: 18px; height: 18px; }
.or { display: flex; align-items: center; gap: 14px; color: #9A9DA3; font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-link { color: var(--amber); font-weight: 600; }
.auth-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: hw-spin .7s linear infinite; }
@keyframes hw-spin { to { transform: rotate(360deg); } }

/* Illustrazione: prompt che si scrive */
.demo-card { background: #fff; border-radius: 22px; box-shadow: 0 1px 2px rgba(15,16,18,.04), 0 18px 50px rgba(15,16,18,.10); padding: 16px 16px 12px; }
.demo-text { min-height: 72px; font-size: 16px; line-height: 1.5; color: var(--ink); padding: 4px 6px; }
.demo-caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: -3px; background: var(--amber); animation: hw-blink 1s steps(1) infinite; }
.demo-toast { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px; box-shadow: 0 1px 2px rgba(15,16,18,.04), 0 14px 40px rgba(15,16,18,.10); padding: 12px 16px; opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; }
.demo-toast.on { opacity: 1; transform: none; }
/* Tipo di progetto, menu e cursore */
.demo-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 12px; border-radius: 999px; background: var(--soft); font-size: 12.5px; font-weight: 600; color: var(--muted); transition: transform .15s ease, background-color .2s ease, color .2s ease; }
.demo-chip.set { background: var(--amber-soft); color: var(--amber-deep); }
.demo-chip.press, .demo-send.press { transform: scale(.92); }
.demo-ic { display: grid; } .demo-ic[hidden] { display: none; }
.demo-menu { position: absolute; left: 0; top: calc(100% + 8px); z-index: 3; width: 196px; padding: 6px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(15,16,18,.14); display: flex; flex-direction: column; opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: top left; pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.demo-menu.open { opacity: 1; transform: none; }
.demo-opt { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--ink); transition: background-color .12s ease; }
.demo-opt svg { color: var(--muted); }
.demo-opt.hl { background: var(--soft); }
.demo-send { transition: transform .15s ease; }
.demo-cursor { position: absolute; left: 0; top: 0; z-index: 4; width: 22px; height: 22px; opacity: 0; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); transition: transform .7s cubic-bezier(.45,.05,.25,1), opacity .25s ease; pointer-events: none; }
.demo-cursor.click { animation: hw-click .25s ease; }
@keyframes hw-click { 50% { scale: .8; } }
@media (prefers-reduced-motion: reduce) { .demo-cursor { display: none; } .demo-caret { animation: none; } .demo-toast { transition: none; } .spin { animation-duration: 1.6s; } }
