/* Authentication layout, using the complete original NextonTech theme palette. */
.csa-login{
 min-height:100vh;min-height:100dvh;display:grid;place-items:center;
 padding:32px 20px;color:var(--text);font-family:var(--font);
 background:radial-gradient(ellipse at 50% 0%,var(--glow),transparent 60%),var(--bg);
}
.csa-login .csa-auth-panel{
 width:min(520px,100%);margin:0;padding:28px 36px 24px;box-sizing:border-box;
 border:1px solid var(--line);border-radius:24px;background:var(--panel-solid);
 box-shadow:0 20px 60px color-mix(in srgb,var(--text) 7%,transparent);
}
.csa-auth-panel .csa-auth-toolbar{
 display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:14px;
 padding-bottom:20px;border-bottom:1px solid var(--line);
}
.csa-auth-panel .csa-login-back{
 display:inline-flex;gap:6px;align-items:center;min-height:40px;margin:0;
 color:var(--muted);font-size:13px;font-weight:500;text-decoration:none;
}
.csa-auth-panel .csa-login-back:hover{color:var(--accent)}
.csa-login-back svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.csa-auth-heading{padding:26px 0 22px;text-align:center}
.csa-auth-wordmark{margin:0 0 13px;font-size:19px;line-height:1.4;font-weight:750;letter-spacing:-.5px;color:var(--text)}
.csa-auth-wordmark span{margin-left:3px;color:var(--accent)}
.csa-auth-panel .csa-auth-heading h1{font-size:29px;line-height:1.4;font-weight:700;letter-spacing:-.4px;margin:0 0 9px}
.csa-auth-heading .csa-muted{margin:0;font-size:13px;line-height:1.8;overflow-wrap:anywhere}
.csa-auth-panel .csa-tabs{
 display:flex;gap:4px;padding:5px;margin:0 0 24px;
 border:1px solid var(--line);border-radius:13px;background:var(--panel2);
}
.csa-auth-panel .csa-tabs button{
 flex:1;min-width:0;min-height:42px;padding:9px 10px;border:0;border-radius:9px;
 background:var(--panel-solid);color:var(--text);font-size:14px;font-weight:600;
 box-shadow:0 2px 8px color-mix(in srgb,var(--text) 7%,transparent);
}
.csa-auth-panel .csa-tabs button.secondary{background:transparent;color:var(--muted);box-shadow:none}
.csa-auth-panel #authForm{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
.csa-auth-panel[data-auth-mode="register"] #authForm{grid-template-columns:repeat(2,minmax(0,1fr))}
.csa-auth-field{min-width:0}
.csa-auth-full{grid-column:1/-1}
.csa-auth-panel .csa-auth-field>label{display:block;margin:0 0 7px;font-size:13px;font-weight:600;line-height:1.6}
.csa-auth-panel .csa-auth-field input{
 width:100%;min-width:0;height:48px;margin:0;padding:12px 14px;border:1px solid var(--line);
 border-radius:11px;background:color-mix(in srgb,var(--panel2) 55%,var(--panel-solid));
 color:var(--text);font:inherit;font-size:15px;line-height:1.5;
 transition:border-color .15s,box-shadow .15s;
}
.csa-auth-panel input::placeholder{color:var(--muted);opacity:.75}
.csa-auth-panel .csa-auth-field input:focus{
 outline:none;border-color:var(--accent);
 box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 14%,transparent);
}
.csa-auth-help{display:block;margin-top:6px;font-size:11px;line-height:1.6;color:var(--muted)}
.csa-auth-optional{font-weight:400;color:var(--muted)}
.csa-auth-panel .csa-password input{padding-right:48px}
.csa-auth-panel .csa-password button{
 position:absolute;right:6px;top:50%;transform:translateY(-50%);
 width:36px;height:36px;padding:6px;border:0;border-radius:8px;background:transparent;color:var(--muted);
}
.csa-auth-panel .csa-password button:hover{color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,transparent)}
.csa-auth-panel .csa-password svg{width:21px;height:21px}
.csa-auth-panel .csa-checkbox{margin:2px 0 0;font-size:12px;line-height:1.7;font-weight:400;color:var(--muted);cursor:pointer}
.csa-auth-panel .csa-checkbox input{width:16px!important;height:16px;flex:0 0 16px;cursor:pointer}
.csa-auth-panel #submit{
 width:100%;min-height:48px;margin-top:2px;padding:12px 16px;border:0;border-radius:11px;
 background:linear-gradient(120deg,var(--accent),var(--accent2));color:var(--content-btn-text,#fff);
 font-size:15px;font-weight:650;box-shadow:0 5px 16px color-mix(in srgb,var(--accent) 17%,transparent);
}
.csa-auth-panel #submit:hover{filter:brightness(1.04)}
.csa-auth-panel #submit:disabled{filter:none;box-shadow:none}
.csa-auth-panel button:focus-visible,.csa-login-back:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.csa-auth-panel .csa-form-error{border:1px solid var(--line);border-left:3px solid var(--accent);padding:10px 12px;border-radius:9px;background:var(--panel2);font-size:13px;line-height:1.7}
.csa-auth-panel #authRetry{width:100%;margin-top:16px}
.csa-auth-panel #signedIn{margin:0 0 20px;font-size:13px}
.csa-auth-panel #signedInName{margin:0 0 12px;overflow-wrap:anywhere}
.csa-auth-footer{margin-top:24px;padding-top:18px;border-top:1px solid var(--line);text-align:center;color:var(--muted);font-size:11px;letter-spacing:.15px}

/* The theme list occupies its own row and never floats over the form. */
.csa-auth-panel .theme-switcher{display:contents}
.csa-auth-panel .theme-button{
 justify-self:end;width:auto;min-width:0;min-height:40px;height:auto;padding:5px 9px;
 background:var(--panel-solid);color:var(--text);border:1px solid var(--line);border-radius:11px;
 font-size:12px;gap:7px;justify-content:center;
}
.csa-auth-panel .theme-button #themeLabel,.csa-auth-panel .theme-button .chev{display:inline}
.csa-auth-panel .theme-button .theme-emblem{width:25px;height:25px;flex-basis:25px}
.csa-auth-panel .theme-menu{
 display:none!important;position:static;grid-column:1/-1;width:100%;min-width:0;
 max-height:min(300px,40vh);overflow-y:auto;margin:0;box-sizing:border-box;z-index:auto;
 transform:none;opacity:1;visibility:visible;pointer-events:none;transition:none;animation:none;
}
.csa-auth-panel .theme-menu.open{display:block!important;pointer-events:auto;transform:none;opacity:1;visibility:visible}
.csa-auth-panel .theme-option{min-width:0;width:100%;box-sizing:border-box;background:transparent;color:var(--text);border:0;justify-content:flex-start;text-align:left}
.csa-auth-panel .theme-option.active{background:var(--panel2)}
.csa-auth-panel .theme-copy{min-width:0}
.csa-auth-panel .theme-name,.csa-auth-panel .theme-sub{white-space:normal;overflow-wrap:anywhere}
@media(max-width:480px){
 .csa-login{padding:16px 12px}
 .csa-login .csa-auth-panel{padding:22px 22px 20px;border-radius:20px;margin:0}
 .csa-auth-panel .csa-auth-toolbar{gap:12px;padding-bottom:16px}
 .csa-auth-heading{padding:22px 0 20px}
 .csa-auth-panel .csa-auth-heading h1{font-size:26px}
 .csa-auth-panel[data-auth-mode="register"] #authForm{grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){.csa-auth-panel input{transition:none}}

.csa-auth-panel .csa-terms{align-items:flex-start}.csa-auth-panel .csa-terms input{margin-top:4px}.csa-auth-panel .csa-terms a{color:var(--accent);text-underline-offset:3px}

.csa-auth-panel [hidden]{display:none!important}
