/* Form feedback shares the cinema palette without native validation bubbles. */
.form-field-error{display:flex;align-items:flex-start;gap:.45rem;margin:.55rem 0 .8rem;color:#ffbdad;font-size:.78rem;line-height:1.5;animation:field-unfold .22s ease-out both}
.form-field-error::before{content:'!';display:grid;place-items:center;flex:0 0 1rem;width:1rem;height:1rem;margin-top:.1rem;border:1px solid #ffad9755;border-radius:50%;font-size:.68rem;font-weight:800}
.has-field-error{border-color:#d98976!important;box-shadow:0 0 0 2px #d9897612!important}
.has-field-error:focus-visible{outline:2px solid #ebc589!important;outline-offset:3px!important}
.form-error-summary{position:relative;isolation:isolate;overflow:hidden;margin:0 0 1.2rem;padding:1.1rem 1.2rem 1rem 3.2rem;border:1px solid #c87a6247;border-radius:15px;background:radial-gradient(ellipse at 0 0,#783a332e,transparent 65%),linear-gradient(125deg,#221a18,#17191a);color:#f4e5dc;animation:feedback-arrive .3s ease-out both}
.form-error-summary::before{content:'!';position:absolute;inset:1rem auto auto 1rem;display:grid;place-items:center;width:1.4rem;height:1.4rem;border:1px solid #cf957374;border-radius:50%;color:#f5bd9d;font-family:Georgia,serif;font-style:italic}
.form-error-summary>strong{display:block;font-size:.88rem;font-weight:650;letter-spacing:.005em}
.form-error-summary>p{margin:.35rem 0 .6rem!important;color:#c9b8ae!important;font-size:.77rem!important;line-height:1.5}
.form-error-summary>ul{display:flex;flex-wrap:wrap;gap:.35rem .9rem;padding:0;margin:0;list-style:none}
.form-error-summary li{font-size:.75rem}
.form-error-summary a{color:#efc5a6;text-decoration:underline;text-decoration-color:#efc5a660;text-underline-offset:4px;transition:text-decoration-color .18s,color .18s}
.form-error-summary a:hover{color:#fff0dd;text-decoration-color:currentColor}
.password-guide{--password-accent:var(--primary);margin:.65rem 0 1rem;padding:1rem 1.05rem;border:1px solid rgba(var(--accent-rgb),0.102);border-radius:14px;background:radial-gradient(ellipse at 100% 0,rgba(var(--accent-rgb),0.078),transparent 65%),linear-gradient(135deg,#20222075,#171a19b3);transition:border-color .3s,background-color .3s}
.password-guide[hidden]{display:none!important}
.password-guide:not([hidden]){transform-origin:top center;animation:password-guide-reveal .32s cubic-bezier(.2,.75,.25,1) both}
.password-guide[data-complete=true]{--password-accent:#a7cdb4;border-color:#9bbea833}
.password-guide-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.3rem;font-size:.68rem;line-height:1.5}
.password-guide-head>span{color:#b8b9b2;text-transform:uppercase;letter-spacing:.12em}
.password-guide-head>strong{color:var(--password-accent);font-weight:550;transition:color .25s}
.password-length-rail{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;margin:.6rem 0 .65rem}
.password-length-rail>span{height:3px;border-radius:3px;background:#ffffff10;overflow:hidden}
.password-length-rail>span::after{content:'';display:block;height:100%;width:100%;transform:translateX(-102%);background:linear-gradient(90deg,var(--primary),var(--password-accent));transition:transform .3s cubic-bezier(.2,.7,.3,1),background-color .3s}
.password-length-rail>span.is-filled::after{transform:translateX(0)}
.password-requirement{margin:0!important;font-size:.7rem!important;color:#c4c5bd!important;line-height:1.45!important}
.password-optional-title{margin:.9rem 0 .4rem!important;font-size:.65rem!important;color:#9faaa2!important;letter-spacing:.05em}
.password-variety{display:flex;flex-wrap:wrap;gap:.45rem}
.password-variety-item{display:inline-flex;align-items:center;gap:.35rem;padding:.3rem .45rem;border:1px solid #ffffff0c;border-radius:7px;background:#10131159;color:#a9b1a9;font-size:.65rem;transition:color .25s,border-color .25s,background-color .25s}
.password-variety-item>b{font-size:.7rem;font-weight:550;color:#b6ab92;letter-spacing:-.04em}
.password-variety-item[data-met=true]{border-color:#9ebfa332;color:#c5dccb;background:linear-gradient(120deg,#344d353d,#1a27211a)}
.password-variety-item[data-met=true]>b{color:#bfd8ac;animation:password-tick .22s ease-out}
.password-guide-help{margin:.65rem 0 0!important;color:#aab2a9!important;font-size:.67rem!important;line-height:1.6!important}
.registration-route{display:flex;gap:.45rem;list-style:none;padding:0;margin:0 0 1.3rem}
.registration-route>li{display:flex;align-items:center;gap:.4rem;flex:1;min-width:0;color:#8b9791;font-size:.65rem;line-height:1.4}
.registration-route>li:not(:last-child)::after{content:'';flex:1;height:1px;background:linear-gradient(90deg,rgba(var(--accent-rgb),0.314),transparent);margin:0 .1rem}
.registration-route b{display:grid;place-items:center;flex:0 0 1.45rem;width:1.45rem;height:1.45rem;border:1px solid rgba(var(--accent-rgb),0.176);border-radius:50%;font-size:.62rem;font-weight:500}
.registration-route [aria-current=step]{color:var(--primary)}
.registration-route [aria-current=step] b{background:radial-gradient(circle at 25% 20%,rgba(var(--accent-rgb),0.322),rgba(var(--accent-rgb),0.047));border-color:rgba(var(--accent-rgb),0.451);box-shadow:0 0 16px rgba(var(--accent-rgb),0.125)}
.auth-page .notice.error{position:relative;border-color:#ca81674a;background:radial-gradient(ellipse at left top,#682f2b2b,transparent 80%),#231d1a;color:#ffd0bb;animation:feedback-arrive .28s ease-out}
@keyframes field-unfold{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}
@keyframes feedback-arrive{from{opacity:0;transform:translateX(-5px)}to{opacity:1;transform:translateX(0)}}
@keyframes password-tick{50%{transform:scale(1.18)}}
@keyframes password-guide-reveal{from{opacity:0;transform:translateY(-7px) scale(.985);clip-path:inset(0 0 12% 0 round 14px)}to{opacity:1;transform:translateY(0) scale(1);clip-path:inset(0 round 14px)}}
/* Behavioral autofill signal: identical endpoints create no visible motion. */
@keyframes password-autofill-observed{from{opacity:1}to{opacity:1}}
input[autocomplete="new-password"][minlength="15"]:-webkit-autofill{animation:password-autofill-observed 1ms}
input[autocomplete="new-password"][minlength="15"]:autofill{animation:password-autofill-observed 1ms}
@media(max-width:420px){.password-guide{padding:.8rem}.form-error-summary{padding:1rem 1rem 1rem 2.8rem}.registration-route{gap:.2rem}.registration-route>li{font-size:.6rem}.registration-route b{flex-basis:1.2rem;width:1.2rem;height:1.2rem}.password-variety{gap:.3rem}.password-variety-item{padding:.3rem .35rem}}
@media(prefers-reduced-motion:reduce){.form-field-error,.form-error-summary,.auth-page .notice.error,.password-guide:not([hidden]),.password-variety-item[data-met=true]>b{animation:none}.password-guide,.password-guide-head>strong,.password-length-rail>span::after,.password-variety-item,.form-error-summary a{transition:none}}
