/* Zati authentication theme. AMOS retains every form, error and action. */
@import url("type.css");
@import url("workspace.css");
:root{--auth-width:28rem;--auth-heading:clamp(2.5rem,5vw,3.5rem);--auth-brand-size:3.5rem;--auth-logo-radius:.875rem;--auth-shadow:0 .5rem 2rem #261b1505;--auth-label-size:.875rem}
body{min-height:100svh;background:var(--paper);color:var(--ink)}
body>header,.auth-header,.amos-auth-header{width:min(100%,calc(var(--max) + var(--gutter)*2));display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);padding:var(--space-5) var(--gutter);margin-inline:auto}
body>header a,.auth-header a,.amos-auth-header a{display:inline-flex;align-items:center;gap:var(--space-3);min-height:var(--target);color:var(--muted);text-decoration:none;font-size:var(--small)}
body>header a:hover,.auth-header a:hover,.amos-auth-header a:hover{color:var(--ink)}
body>header img,.auth-brand img,.amos-auth-brand img{display:block;width:var(--auth-brand-size);height:var(--auth-brand-size);object-fit:contain;border-radius:var(--auth-logo-radius);flex:none}
.auth-brand,.amos-auth-brand>a:first-child{font-weight:550;color:var(--ink);letter-spacing:-.025em}
main,.auth-main,.amos-auth-main{width:100%;max-width:calc(var(--auth-width) + var(--gutter)*2);margin:0 auto;padding:var(--space-6) var(--gutter) var(--space-8);flex:1}
h1{font-size:var(--auth-heading);font-weight:450;line-height:1.1;letter-spacing:-.06em;margin:0 0 var(--space-5);text-wrap:balance}
main>p,.auth-main>p,.amos-auth-main>p{font-size:var(--small);color:var(--muted);line-height:1.7;margin-block:var(--space-4)}
main>form,.auth-main>form,.amos-auth-main>form{display:flex;flex-direction:column;gap:var(--space-2);padding:var(--space-5);border:var(--border) solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--auth-shadow)}
form label{display:block;font-size:var(--auth-label-size);font-weight:500;line-height:1.5;color:var(--ink)}
form label:not(:first-of-type){margin-top:var(--space-3)}
form input:not([type=hidden]){width:100%;min-width:0;min-height:var(--control);font-size:var(--body);line-height:1.5;padding:var(--space-3);background:var(--surface);border:var(--border) solid var(--line);border-radius:var(--space-2);color:var(--ink)}
form input:hover{border-color:var(--muted)}
form input:user-invalid{border-color:var(--warning)}
form button{width:100%;min-height:var(--control);display:inline-flex;justify-content:center;align-items:center;gap:var(--space-3);padding:var(--space-3) var(--space-4);margin-top:var(--space-4);border:var(--border) solid var(--ink);border-radius:var(--pill);background:var(--ink);color:var(--white);font-size:var(--auth-label-size);font-weight:500;line-height:1.5;cursor:pointer;transition:background .18s,border-color .18s,transform .18s}
form button:hover{background:var(--teal-dark);border-color:var(--teal-dark)}
form button:active{transform:translateY(.0625rem)}
form button:disabled{cursor:wait;opacity:.75}
a:focus-visible,button:focus-visible,input:focus-visible{outline:var(--focus) solid var(--teal);outline-offset:var(--space-1)}
main a,.auth-main a,.amos-auth-main a{color:var(--teal-dark);text-underline-offset:.2em;font-weight:500}
main a:hover,.auth-main a:hover,.amos-auth-main a:hover{color:var(--ink)}
main>p:has(a),.auth-links,.amos-auth-links{display:flex;align-items:center;justify-content:center;gap:var(--space-3);flex-wrap:wrap;text-align:center}
main>p a,.auth-links a,.amos-auth-links a{display:inline-flex;align-items:center;min-height:var(--target)}
[role=alert],[role=status],.auth-message,.amos-auth-message{padding:var(--space-4);border-inline-start:var(--focus) solid var(--teal);border-radius:0 var(--space-2) var(--space-2) 0;background:var(--teal-wash);font-size:var(--small);color:var(--ink);line-height:1.65;margin-block:var(--space-4)}
body>footer,.auth-footer,.amos-auth-footer{width:min(100%,calc(var(--max) + var(--gutter)*2));padding:var(--space-5) var(--gutter);margin-inline:auto;color:var(--muted);font-size:var(--caption);display:flex;justify-content:space-between;gap:var(--space-3);flex-wrap:wrap}
@media(max-width:44rem){body>header,.auth-header,.amos-auth-header{padding-block:var(--space-4)}main,.auth-main,.amos-auth-main{padding-top:var(--space-5);padding-bottom:var(--space-6)}main>form,.auth-main>form,.amos-auth-main>form{padding:var(--space-4)}h1{margin-bottom:var(--space-4)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}
