
/* =========================================================
   JCCHT portal sign-in  ·  jccht-auth.css  (v2)
   Scoped to body.jc-auth
   ========================================================= */
body.jc-auth{
  --brand:#963094; --brand-text:#7E2A7C; --brand-deep:#7A2578; --brand-soft:#F4EFF4;
  --orchid:#D08ACE;
  --plum:#3A1338; --plum-2:#250C24;
  --ink:#191719; --ink-2:#3B383B; --muted:#6A656A;
  --line:#E3E1E3; --line-strong:#C6C2C6;
  --surface:#FFFFFF; --ground:#F6F3F6;
  margin:0 !important;padding:0 !important;background:var(--ground) !important;
  font-family:"Public Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif !important;
  color:var(--ink);font-size:15.5px;line-height:1.6;-webkit-font-smoothing:antialiased}
body.jc-auth *{box-sizing:border-box}
body.jc-auth h1,body.jc-auth h2,body.jc-auth h3{
  font-family:"Newsreader",Georgia,"Times New Roman",serif;font-weight:500;color:var(--ink);
  margin:0;letter-spacing:-.015em;line-height:1.15}
body.jc-auth img{display:block;max-width:100%}

.jca{display:grid;grid-template-columns:1.08fr 1fr;min-height:100vh}

/* ---------- left: photograph under a plum flood ---------- */
.jca-media{position:relative;background:var(--plum);overflow:hidden;display:flex}
.jca-media img.bg{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;
  opacity:.28;filter:grayscale(.35)}
.jca-media .scrim{position:absolute;top:0;left:0;right:0;bottom:0;
  background:linear-gradient(155deg, rgba(58,19,56,.93) 0%, rgba(37,12,36,.97) 62%, rgba(20,6,20,.99) 100%)}
.jca-media-in{position:relative;display:flex;flex-direction:column;justify-content:space-between;
  gap:40px;padding:44px 52px;width:100%;max-width:640px;margin-left:auto}

.jca-brand{display:flex;align-items:center;gap:14px}
.jca-brand img{width:48px;flex:none;background:#fff;border-radius:3px;padding:4px}
.jca-brand span{color:#fff;font-family:"Newsreader",Georgia,serif;font-size:17px;line-height:1.25;
  max-width:22ch}

.jca-eyebrow{display:block;font-size:11.5px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;
  color:var(--orchid);margin-bottom:14px}
.jca-lead h2{color:#fff;font-size:clamp(28px,3.1vw,44px);line-height:1.08;max-width:15ch}
.jca-lead h2 em{font-style:italic;color:var(--orchid)}
.jca-lead p{color:#CFC4CE;font-size:15.5px;margin:18px 0 0;max-width:46ch}
.jca-points{list-style:none;margin:26px 0 0;padding:0;display:flex;flex-direction:column;gap:12px}
.jca-points li{color:#E6DEE5;font-size:14.5px;display:flex;gap:12px;align-items:flex-start;line-height:1.45}
.jca-points svg{width:17px;height:17px;flex:none;margin-top:2px;stroke:var(--orchid)}

.jca-contact{border-top:1px solid rgba(255,255,255,.14);padding-top:22px;display:flex;
  flex-wrap:wrap;gap:10px 28px;color:#B7ABB6;font-size:13.5px}
.jca-contact span{display:flex;align-items:center;gap:8px}
.jca-contact svg{width:15px;height:15px;flex:none;stroke:var(--orchid);opacity:.85}

/* ---------- right: the card ---------- */
.jca-panel{display:flex;align-items:center;justify-content:center;padding:48px 32px;
  background:var(--ground)}
.jca-stack{width:100%;max-width:430px}
.jca-card{background:var(--surface);border:1px solid var(--line);border-top:2px solid var(--brand);
  border-radius:3px;padding:34px 34px 28px;
  box-shadow:0 1px 2px rgba(25,23,25,.04),0 18px 40px -26px rgba(37,12,36,.45)}
.jca-card > .kicker{display:block;font-size:11px;font-weight:700;letter-spacing:.18em;
  text-transform:uppercase;color:var(--brand-text);margin-bottom:10px}
.jca-card h1{font-size:29px;margin-bottom:7px}
.jca-card .sub{color:var(--muted);font-size:14.5px;margin:0 0 24px}

/* student / staff switch */
.jca-switch{display:grid;grid-template-columns:1fr 1fr;gap:0;margin:0 0 26px;
  border-bottom:1px solid var(--line)}
.jca-switch a{display:flex;align-items:center;justify-content:center;gap:8px;padding:11px 8px;
  font-size:14.5px;font-weight:600;color:var(--muted);text-decoration:none;
  border-bottom:2px solid transparent;margin-bottom:-1px;transition:color 150ms ease,border-color 150ms ease}
.jca-switch a:hover{color:var(--brand-text);text-decoration:none}
.jca-switch a.is-on{color:var(--brand-text);border-bottom-color:var(--brand)}
.jca-switch svg{width:16px;height:16px;stroke:currentColor;flex:none}

/* fields with a leading icon */
body.jc-auth .jca-field,body.jc-auth .form-group{margin-bottom:16px}
body.jc-auth label{display:block;font-size:13px;font-weight:600;color:var(--ink-2);
  margin-bottom:7px;text-transform:none;letter-spacing:0}
.jca-input{position:relative;display:block}
.jca-input > svg{position:absolute;left:13px;top:50%;transform:translateY(-50%);width:17px;height:17px;
  stroke:var(--muted);pointer-events:none;transition:stroke 150ms ease}
.jca-input:focus-within > svg{stroke:var(--brand)}
body.jc-auth .form-control,body.jc-auth input[type=text],body.jc-auth input[type=email],
body.jc-auth input[type=password]{
  width:100%;font-family:inherit;font-size:15px;padding:12px 14px;
  border:1px solid var(--line-strong);border-radius:3px;background:var(--surface);color:var(--ink);
  box-shadow:none;height:auto;transition:border-color 140ms ease,box-shadow 140ms ease}
.jca-input .form-control,.jca-input input{padding-left:40px !important}
body.jc-auth .form-control:focus,body.jc-auth input:focus{outline:none;border-color:var(--brand);
  box-shadow:0 0 0 3px var(--brand-soft)}
body.jc-auth .form-control::placeholder{color:#A9A3A9}
body.jc-auth .is-invalid,body.jc-auth .form-control.is-invalid{border-color:#B3261E}
body.jc-auth .invalid-feedback,body.jc-auth .jca-error{display:block;color:#B3261E;font-size:13px;
  margin-top:6px}

.jca-row{display:flex;align-items:center;justify-content:space-between;gap:16px;
  margin:6px 0 20px;flex-wrap:wrap}
body.jc-auth .jca-row label{display:flex;align-items:center;gap:8px;margin:0;font-size:14px;
  font-weight:500;color:var(--muted);cursor:pointer}
.jca-row input[type=checkbox]{width:16px;height:16px;accent-color:var(--brand);margin:0}
body.jc-auth a{color:var(--brand-text);text-decoration:none}
body.jc-auth a:hover{text-decoration:underline}
.jca-row a{font-size:14px;font-weight:600}

body.jc-auth .btn,body.jc-auth button[type=submit]{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;
  font-family:"Public Sans",sans-serif;font-size:15px;font-weight:600;letter-spacing:.02em;
  padding:14px 22px;border-radius:3px;border:1px solid var(--brand);background:var(--brand);color:#fff;
  cursor:pointer;transition:background-color 160ms ease,transform 120ms ease}
body.jc-auth .btn:hover,body.jc-auth button[type=submit]:hover{background:var(--brand-deep);
  border-color:var(--brand-deep);color:#fff;text-decoration:none}
body.jc-auth .btn:active,body.jc-auth button[type=submit]:active{transform:translateY(1px)}
body.jc-auth .btn svg{width:16px;height:16px;stroke:currentColor}

.jca-hint{font-size:13px;color:var(--muted);margin:-8px 0 18px;line-height:1.5}
.jca-copy{margin:22px 0 0;padding-top:18px;border-top:1px solid var(--line);
  font-size:12.5px;color:var(--muted);text-align:center;line-height:1.5}

/* stacked secondary actions under the card */
.jca-actions{display:flex;flex-direction:column;gap:10px;margin-top:18px}
.jca-actions a{display:flex;align-items:center;justify-content:center;gap:9px;padding:13px 18px;
  border-radius:3px;font-size:14.5px;font-weight:600;text-decoration:none;
  border:1px solid var(--line-strong);background:var(--surface);color:var(--ink-2);
  transition:border-color 150ms ease,color 150ms ease,background-color 150ms ease}
.jca-actions a:hover{border-color:var(--brand);color:var(--brand-text);text-decoration:none}
.jca-actions a.is-primary{background:var(--plum);border-color:var(--plum);color:#fff}
.jca-actions a.is-primary:hover{background:var(--plum-2);border-color:var(--plum-2);color:#fff}
.jca-actions svg{width:16px;height:16px;stroke:currentColor;flex:none}

body.jc-auth .alert{border-radius:3px;border:1px solid var(--line);border-left:3px solid #B3261E;
  background:#FDF1F0;color:#7A1B15;padding:11px 14px;font-size:14px;margin-bottom:18px}
body.jc-auth .alert-success{border-left-color:#2C6D51;background:#EFF7F2;color:#1F4F3A}

@media (max-width:980px){
  .jca{grid-template-columns:1fr;min-height:0}
  .jca-media{min-height:0}
  .jca-media-in{max-width:none;margin:0;padding:28px 24px 30px;gap:24px}
  .jca-lead h2{font-size:clamp(24px,6vw,32px);max-width:none}
  .jca-lead p,.jca-points{display:none}
  .jca-contact{display:none}
  .jca-panel{padding:26px 18px 44px}
  .jca-stack{max-width:none}
  .jca-card{padding:26px 22px 22px}
  .jca-card h1{font-size:25px}
}
@media (prefers-reduced-motion:reduce){
  body.jc-auth .form-control,body.jc-auth .btn,.jca-actions a,.jca-switch a{transition:none}
}


/* --- v2 fixes --- */
body.jc-auth .jca-media-in h2,
body.jc-auth .jca-lead h2{color:#fff !important}
body.jc-auth .jca-brand span{color:#fff !important}
body.jc-auth .jca-card h1{color:var(--ink) !important}
body.jc-auth .jca-card .kicker{color:var(--brand-text) !important}


/* --- photo presence --- */
body.jc-auth .jca-media img.bg{opacity:.46 !important;filter:grayscale(.15) !important}
body.jc-auth .jca-media .scrim{
  background:linear-gradient(150deg, rgba(58,19,56,.80) 0%, rgba(45,14,43,.88) 55%, rgba(24,8,23,.95) 100%) !important}
body.jc-auth .jca-lead h2{text-shadow:0 2px 18px rgba(20,6,20,.5)}
