/* Lightweight authentication UI. Scoped so it follows the active theme. */
:where(.kte-lms-auth,.kte-auth-shell){
  --kte-auth-accent:var(--kt-primary,var(--kte-lms-accent,#34a3cf));
  --kte-auth-bg:var(--kt-surface,var(--kte-lms-card,#fff));
  --kte-auth-text:var(--kt-text,var(--kte-lms-text,inherit));
  --kte-auth-muted:var(--kt-muted,var(--kte-lms-muted,#667085));
  --kte-auth-border:var(--kt-border,var(--kte-lms-border,rgba(15,23,42,.12)));
  --kte-auth-radius:var(--kt-radius,var(--kte-lms-radius,22px));
  width:100%;max-width:100%;margin:clamp(16px,4vw,42px) auto;color:var(--kte-auth-text);font:inherit;
}
:where(.kte-lms-auth,.kte-auth-shell),:where(.kte-lms-auth,.kte-auth-shell) *{box-sizing:border-box}
:where(.kte-lms-auth,.kte-auth-shell) .kte-lms-form,
:where(.kte-lms-auth,.kte-auth-shell) .kte-auth-card{
  width:min(100%,540px);margin-inline:auto;padding:clamp(20px,4vw,34px);display:grid;gap:16px;
  background:var(--kte-auth-bg);color:var(--kte-auth-text);border:1px solid var(--kte-auth-border);
  border-radius:var(--kte-auth-radius);box-shadow:0 18px 55px rgba(15,23,42,.09);
}
:where(.kte-lms-auth,.kte-auth-shell) h2{display:flex;align-items:center;gap:10px;margin:0;font:inherit;font-size:clamp(24px,4vw,34px);font-weight:800;line-height:1.15;color:inherit}
.kte-auth-icon{width:30px;height:30px;flex:none;padding:6px;border-radius:10px;background:rgba(52,163,207,.12);color:var(--kte-auth-accent)}
.kte-auth-subtitle{margin:-6px 0 2px;color:var(--kte-auth-muted);line-height:1.55}
:where(.kte-lms-auth,.kte-auth-shell) label{display:grid;gap:7px;margin:0;color:inherit;font-weight:700}
:where(.kte-lms-auth,.kte-auth-shell) label>span:first-child{font-size:14px}
:where(.kte-lms-auth,.kte-auth-shell) label small,.kte-auth-hint{color:var(--kte-auth-muted);font-size:12px;font-weight:500}
:where(.kte-lms-auth,.kte-auth-shell) input,
:where(.kte-lms-auth,.kte-auth-shell) select,
:where(.kte-lms-auth,.kte-auth-shell) textarea{
  width:100%;min-height:46px;margin:0;padding:11px 13px;border:1px solid var(--kte-auth-border);border-radius:14px;
  background:var(--kte-auth-bg);color:var(--kte-auth-text);font:inherit;outline:0;transition:border-color .18s ease,box-shadow .18s ease;
}
:where(.kte-lms-auth,.kte-auth-shell) input:focus,
:where(.kte-lms-auth,.kte-auth-shell) select:focus,
:where(.kte-lms-auth,.kte-auth-shell) textarea:focus{border-color:var(--kte-auth-accent);box-shadow:0 0 0 3px rgba(52,163,207,.16)}
.kte-auth-password{position:relative;display:block}
.kte-auth-password input{padding-right:72px!important}
.kte-auth-password-toggle{position:absolute;right:7px;top:50%;translate:0 -50%;min-width:54px;padding:7px 9px;border:0;border-radius:9px;background:rgba(52,163,207,.12);color:var(--kte-auth-accent);font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.kte-auth-row{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
:where(.kte-lms-auth,.kte-auth-shell) label.inline{display:flex;align-items:center;gap:8px;font-weight:600}
:where(.kte-lms-auth,.kte-auth-shell) label.inline input{width:18px;min-height:18px;height:18px;margin:0;accent-color:var(--kte-auth-accent)}
:where(.kte-lms-auth,.kte-auth-shell) a{color:var(--kte-auth-accent);font-weight:700;text-underline-offset:3px}
:where(.kte-lms-auth,.kte-auth-shell) .kte-lms-btn{width:100%;min-height:46px;border:0;border-radius:999px;padding:11px 18px;background:var(--kte-auth-accent);color:#fff;font:inherit;font-weight:800;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 10px 24px rgba(45,131,163,.2)}
:where(.kte-lms-auth,.kte-auth-shell) .kte-lms-btn:disabled{opacity:.66;cursor:wait;box-shadow:none}
.kte-auth-switch{text-align:center;margin:0;color:var(--kte-auth-muted);font-size:14px}
.kte-user-custom-fields{display:grid;gap:14px}
:where(.kte-lms-auth,.kte-auth-shell) .kte-lms-flash,
:where(.kte-lms-auth,.kte-auth-shell) .kte-alert{display:flex;gap:9px;align-items:flex-start;margin:0 0 12px;padding:12px 14px;border:1px solid #fecaca;border-radius:14px;background:#fff7f7;color:#991b1b;line-height:1.45}
:where(.kte-lms-auth,.kte-auth-shell) .kte-lms-flash.success,
:where(.kte-lms-auth,.kte-auth-shell) .kte-alert.success{border-color:#bbf7d0;background:#f0fdf4;color:#166534}
.kte-lms-flash-icon{display:inline-flex;flex:none;width:20px;height:20px;align-items:center;justify-content:center}
.kte-auth-already-in{text-align:center}.kte-auth-already-in .avatar{display:block;margin:0 auto 12px;border-radius:50%}
.kte-auth-layout-left :is(.kte-lms-form,.kte-auth-card){margin-left:0}.kte-auth-layout-right :is(.kte-lms-form,.kte-auth-card){margin-right:0}.kte-auth-layout-wide :is(.kte-lms-form,.kte-auth-card){width:min(100%,840px)}
.kte-auth-skin-flat :is(.kte-lms-form,.kte-auth-card){box-shadow:none}.kte-auth-skin-minimal :is(.kte-lms-form,.kte-auth-card){padding-inline:0;background:transparent;border:0;box-shadow:none}
html[data-kte-theme="dark"] :where(.kte-lms-auth,.kte-auth-shell),.dark :where(.kte-lms-auth,.kte-auth-shell){--kte-auth-bg:#102a35;--kte-auth-text:#eaf7fb;--kte-auth-muted:#a7c5d0;--kte-auth-border:rgba(255,255,255,.13)}
html[data-kte-theme="dark"] :where(.kte-lms-auth,.kte-auth-shell) :is(input,select,textarea),.dark :where(.kte-lms-auth,.kte-auth-shell) :is(input,select,textarea){background:rgba(255,255,255,.05)}
@media(max-width:575.98px){:where(.kte-lms-auth,.kte-auth-shell){margin-block:12px}:where(.kte-lms-auth,.kte-auth-shell) .kte-lms-form,:where(.kte-lms-auth,.kte-auth-shell) .kte-auth-card{padding:20px 16px;border-radius:18px}.kte-auth-row{align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){:where(.kte-lms-auth,.kte-auth-shell) *{transition:none!important}}
