/* =====================================================================
   PREPMODE EDUTECH - Sign-in page style: Classic and Glass (docs/SIGNIN-STYLE.md)
   Works with js/signinstyle.js. Colours come from each institute's own look:
   --brand (main colour), --accent-fill / --accent-fill-ink / --accent-dark (accent), --font.
   ===================================================================== */

/* ---------- course line and points on the left half (both styles) ---------- */
.auth[data-split] .bd-pane-courses { margin: 0 0 18px; font: 700 12.5px/1.4 var(--display, inherit); letter-spacing: .16em; text-transform: uppercase; color: inherit; opacity: .85; }
.auth[data-split] .bd-pane-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; max-width: 34em; }
.auth[data-split] .bd-pane-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; color: inherit; }
.auth[data-split] .bd-pane-points svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--accent-dark, currentColor); }
.auth[data-split][data-bg=light]:not([data-style=glass]) .bd-pane-points svg { color: var(--brand); }
.auth[data-split][data-bg=brand]:not([data-style=glass]) .bd-pane-points svg { color: currentColor; }

/* ---------- Glass ---------- */
.auth[data-split][data-style=glass] {
  --gl-lift: color-mix(in srgb, var(--brand) 55%, #fff);
  --gl-accent: var(--accent-fill, var(--brand-fill, var(--brand)));
  --gl-accent-ink: var(--accent-fill-ink, var(--brand-fill-ink, var(--brand-ink, #fff)));
  --gl-link: color-mix(in srgb, var(--accent-dark, var(--gl-lift)) 60%, #fff);
  position: relative; isolation: isolate; overflow: hidden;
  background: color-mix(in srgb, var(--brand) 16%, #000) !important;
  color: #fff;
}
.auth[data-split][data-style=glass]::before,
.auth[data-split][data-style=glass]::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.auth[data-split][data-style=glass]::before { left: -220px; top: -260px; width: 820px; height: 820px;
  background: radial-gradient(circle, color-mix(in srgb, var(--gl-lift) 42%, transparent) 0%, transparent 62%); }
.auth[data-split][data-style=glass]::after { right: -160px; bottom: -280px; width: 760px; height: 760px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-dark, var(--gl-lift)) 18%, transparent) 0%, transparent 60%); }

.auth[data-split][data-style=glass] .bd-pane { background: transparent; color: rgba(255, 255, 255, .86); justify-content: flex-start; gap: 40px; padding: 56px 64px; }
.auth[data-split][data-style=glass] .bd-pane-text { margin: auto 0; }
.auth[data-split][data-style=glass] .bd-pane-logo { max-height: 56px; }
.auth[data-split][data-style=glass] .bd-pane-head { color: #fff; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.04; }
.auth[data-split][data-style=glass] .bd-pane-tag { margin-top: 18px; font-size: 20px; letter-spacing: 0; opacity: 1; color: var(--gl-link); }
.auth[data-split][data-style=glass] .bd-pane-courses { color: rgba(255, 255, 255, .7); opacity: 1; }
.auth[data-split][data-style=glass] .bd-pane-points svg { color: var(--gl-link); }

.auth[data-split][data-style=glass] .auth-card {
  width: calc(100% - 64px); max-width: 450px; padding: 40px 38px; border-radius: 24px; color: #fff;
  background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 80px color-mix(in srgb, var(--gl-lift) 38%, transparent), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.auth[data-split][data-style=glass] .auth-card h1 { color: #fff; }
.auth[data-split][data-style=glass] .auth-card .lead,
.auth[data-split][data-style=glass] .auth-card .bd-welcome,
.auth[data-split][data-style=glass] .auth-card .hint,
.auth[data-split][data-style=glass] .auth-card .muted,
.auth[data-split][data-style=glass] .auth-card .bd-help { color: rgba(255, 255, 255, .76); }
.auth[data-split][data-style=glass] .auth-card label { color: rgba(255, 255, 255, .92); }
.auth[data-split][data-style=glass] .auth-card input[type=email],
.auth[data-split][data-style=glass] .auth-card input[type=password],
.auth[data-split][data-style=glass] .auth-card input[type=text] {
  min-height: 50px; color: #fff; caret-color: #fff; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .24);
}
.auth[data-split][data-style=glass] .auth-card input::placeholder { color: rgba(255, 255, 255, .55); }
.auth[data-split][data-style=glass] .auth-card input:focus { border-color: var(--gl-link); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gl-link) 35%, transparent); outline: none; }
.auth[data-split][data-style=glass] .auth-card input:-webkit-autofill { -webkit-text-fill-color: #fff; box-shadow: 0 0 0 1000px color-mix(in srgb, var(--brand) 22%, #0b0812) inset; caret-color: #fff; }
.auth[data-split][data-style=glass] .auth-card .btn:not(.secondary) {
  min-height: 52px; border: 0; background: var(--gl-accent); color: var(--gl-accent-ink);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--gl-accent) 40%, transparent);
}
.auth[data-split][data-style=glass] .auth-card .btn:not(.secondary):hover { filter: brightness(1.06); }
.auth[data-split][data-style=glass] .auth-card .btn.secondary { min-height: 50px; background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .28); }
.auth[data-split][data-style=glass] .auth-card .link-btn,
.auth[data-split][data-style=glass] .auth-card a { color: var(--gl-link); }
.auth[data-split][data-style=glass] .auth-card .form-error { color: #FFB4AB; }
.auth[data-split][data-style=glass] :focus-visible { outline-color: var(--gl-link); }

@media (max-width: 820px) {
  .auth[data-split] .bd-pane-points { display: none; }
  .auth[data-split][data-style=glass] .bd-pane { padding: 24px; gap: 16px; }
  .auth[data-split][data-style=glass] .bd-pane-text { margin: 0; }
  .auth[data-split][data-style=glass] .bd-pane-head { font-size: 30px; }
  .auth[data-split][data-style=glass] .auth-card { width: calc(100% - 32px); margin: 8px 16px 32px; padding: 28px 22px; align-self: start; }
}

/* ---------- Look and feel panel: Page style, course line, points ---------- */
.ss-styles .ss-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ss-opt { position: relative; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 12px; border: 1px solid var(--rule, #EAECF0); border-radius: 14px; background: #fff; cursor: pointer; font-weight: 400; }
.ss-opt:has(input:checked) { border-color: var(--brand, #0E7C7B); box-shadow: 0 0 0 2px var(--brand, #0E7C7B); }
.ss-opt input { position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; margin: 0; accent-color: var(--brand, #0E7C7B); }
.ss-opt:has(input:focus-visible) { outline: 3px solid var(--focus-ring, var(--brand, #0E7C7B)); outline-offset: 2px; }
.ss-txt { display: grid; gap: 2px; font-size: 13px; line-height: 1.4; color: var(--slate, #475467); }
.ss-txt strong { font-size: 14px; color: var(--ink, #101828); }
.ss-thumb { position: relative; display: block; height: 74px; border-radius: 9px; overflow: hidden; }
.ss-thumb i { position: absolute; display: block; }
.ss-thumb.classic { background: #fff; border: 1px solid var(--rule, #EAECF0); }
.ss-thumb.classic .a { left: 0; top: 0; bottom: 0; width: 52%; background: var(--night, #101828); }
.ss-thumb.classic .b { left: 60%; right: 10%; top: 26%; height: 12%; border-radius: 3px; background: var(--rule, #EAECF0); }
.ss-thumb.classic .c { left: 60%; right: 10%; top: 54%; height: 16%; border-radius: 3px; background: var(--brand, #0E7C7B); }
.ss-thumb.glass { background: color-mix(in srgb, var(--brand, #0E7C7B) 16%, #000); }
.ss-thumb.glass .a { left: -20%; top: -60%; width: 90%; height: 160%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand, #0E7C7B) 60%, transparent), transparent 65%); }
.ss-thumb.glass .b { left: 56%; right: 8%; top: 14%; bottom: 14%; border-radius: 7px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); }
.ss-thumb.glass .c { left: 62%; right: 14%; top: 60%; height: 14%; border-radius: 3px; background: var(--accent-fill, var(--brand, #0E7C7B)); }
.ss-points { display: grid; gap: 6px; margin: 14px 0 0; }
.ss-plabel { font-size: 14px; }
.ss-plist { display: grid; gap: 8px; margin-top: 4px; }
.ss-prow { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.ss-pnum { font-size: 12px; font-weight: 700; color: var(--slate, #475467); text-align: center; }
.ss-prow .link-btn { min-height: 44px; }
.ss-padd { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.ss-dim legend, .ss-dim .bd-bg { opacity: .55; }
.ss-bgnote { margin: 8px 0 0; }
@media (max-width: 560px) { .ss-styles .ss-opts { grid-template-columns: minmax(0, 1fr); } }

/* ---------- live preview ---------- */
.bd-pv-courses { margin: 0 0 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.bd-pv-points { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 7px; font-size: 13px; line-height: 1.4; }
.bd-pv-points li { display: flex; gap: 8px; align-items: flex-start; }
.bd-pv-points svg { flex: none; width: 15px; height: 15px; margin-top: 1px; }
.bd-pv-split.glass { position: relative; isolation: isolate; overflow: hidden; background: color-mix(in srgb, var(--ss-brand, #0E7C7B) 16%, #000); }
.bd-pv-split.glass::before { content: ""; position: absolute; z-index: -1; left: -120px; top: -160px; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, color-mix(in srgb, var(--ss-brand, #0E7C7B) 55%, #fff) 42%, transparent), transparent 62%); }
.bd-pv-split.glass::after { content: ""; position: absolute; z-index: -1; right: -100px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--ss-adark, #0E7C7B) 18%, transparent), transparent 60%); }
.bd-pv-split.glass .bd-pv-pane { background: transparent !important; color: rgba(255, 255, 255, .86) !important; justify-content: flex-start; }
.bd-pv-split.glass .bd-pv-ptext { margin: auto 0; }
.bd-pv-split.glass .bd-pv-phead { color: #fff !important; }
.bd-pv-split.glass .bd-pv-ptag { color: color-mix(in srgb, var(--ss-adark, #0E7C7B) 60%, #fff) !important; opacity: 1; font-size: 15px; letter-spacing: 0; }
.bd-pv-split.glass .bd-pv-points svg { color: color-mix(in srgb, var(--ss-adark, #0E7C7B) 60%, #fff); }
.bd-pv-split.glass .bd-pv-form { align-self: center; margin: 24px 24px 24px 0; padding: 28px; border-radius: 18px; color: #fff;
  background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .4), 0 0 50px color-mix(in srgb, color-mix(in srgb, var(--ss-brand, #0E7C7B) 55%, #fff) 35%, transparent); }
.bd-pv-split.glass .bd-pv-h { color: #fff; }
.bd-pv-split.glass .bd-pv-welcome, .bd-pv-split.glass .bd-pv-help { color: rgba(255, 255, 255, .76); }
.bd-pv-split.glass .bd-pv-lab { color: rgba(255, 255, 255, .92); }
.bd-pv-split.glass .bd-pv-field { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .24); }
.bd-pv-split.glass .bd-pv-btn { background: var(--ss-afill) !important; color: var(--ss-aink) !important; }
.bd-pv-split.glass .bd-pv-forgot { color: color-mix(in srgb, var(--ss-adark, #0E7C7B) 60%, #fff) !important; }
.bd-frame.phone .bd-pv-points { display: none; }
.bd-frame.phone .bd-pv-split.glass .bd-pv-form { margin: 0 16px 20px; }
