:root {
  --navy: #0b192c;
  --navy-soft: #142941;
  --blue: #0284c7;
  --amber: #d97706;
  --text: #152536;
  --muted: #687789;
  --border: #dce4ec;
  --surface: #fff;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body {
  margin: 0;
  min-height: 100vh;
  padding: 28px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: radial-gradient(circle at 82% 8%, #e0f2f8 0, transparent 32%), linear-gradient(135deg, #f4f6f5, #e9eff1);
  font-family: Kanit, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
a { color: inherit; }
.login-shell {
  width: min(1120px, 100%);
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  overflow: hidden;
  border: 1px solid rgba(11, 25, 44, .08);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 26px 75px rgba(19, 41, 61, .13), 0 2px 9px rgba(19, 41, 61, .05);
}
.brand-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 690px;
  padding: 38px 44px 36px;
  color: white;
  background: radial-gradient(circle at 12% 76%, rgba(2, 132, 199, .28), transparent 40%), linear-gradient(150deg, #0b192c 13%, #112944 74%, #123957);
}
.brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .24;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(120deg, transparent 15%, #000 95%);
}
.brand-top, .brand-identity, .form-top, .label-row { display: flex; align-items: center; justify-content: space-between; }
.brand-top { gap: 20px; position: relative; z-index: 1; }
.brand-identity { justify-content: flex-start; gap: 13px; }
.logo-badge {
  flex: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.12);
  color: #f5c47d;
  font-size: 20px;
}
.brand-name { font-size: 21px; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
.brand-name small { display: block; margin-top: 5px; color: #b9cada; font-size: 11px; font-weight: 400; letter-spacing: 0; }
.brand-tag {
  flex: none;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: #d6e8f4;
  background: rgba(255,255,255,.06);
  font: 600 10px/1.1 Arial, sans-serif;
  letter-spacing: .09em;
}
.status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #39d2a4; box-shadow: 0 0 0 3px rgba(57,210,164,.14); }
.brand-content { position: relative; z-index: 1; padding: 40px 0 45px; }
.eyebrow, .section-kicker, .portal-label { font-size: 11px; font-weight: 600; letter-spacing: .1em; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #f4bb72; }
.brand-content h1 { margin: 20px 0 15px; font-size: clamp(39px, 4vw, 57px); line-height: 1.24; font-weight: 600; letter-spacing: -.035em; }
.brand-content h1 em { color: #83d0ee; font-style: normal; }
.brand-content p { max-width: 380px; margin: 0; color: #c8d7e5; font-size: 15px; font-weight: 300; line-height: 1.85; }
.feature-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.feature-list span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.15); border-radius: 8px; background: rgba(255,255,255,.06); color: #e0ebf3; font-size: 11px; }
.feature-list i { color: #f3b86c; }
.architecture { position: absolute; right: -40px; bottom: 40px; width: 295px; height: 240px; z-index: -1; opacity: .65; }
.architecture span { position: absolute; right: 0; bottom: 0; width: 100%; height: 100%; border: 1px solid rgba(115,204,238,.42); transform: skewY(-23deg) scale(.98); }
.architecture span:nth-child(2) { right: 30px; bottom: 24px; width: 78%; height: 72%; }
.architecture span:nth-child(3) { right: 60px; bottom: 48px; width: 56%; height: 44%; }
.brand-bottom { position: relative; z-index: 1; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); color: #afc0d0; font-size: 11px; }
.brand-bottom i { margin-right: 7px; color: #f0b86e; }
.form-panel { display: flex; flex-direction: column; min-width: 0; padding: 37px 54px 30px; }
.form-top { gap: 12px; }
.portal-label { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); }
.environment { padding: 6px 11px; border: 1px solid #dfebf1; border-radius: 999px; color: #637789; background: #f5f9fb; font-size: 11px; }
.form-content { width: min(430px, 100%); margin: auto; padding: 28px 0 34px; }
.heading-block { margin-bottom: 31px; }
.section-kicker { color: var(--amber); }
.heading-block h2 { margin: 7px 0 2px; color: var(--navy); font-size: 38px; line-height: 1.25; font-weight: 600; letter-spacing: -.025em; }
.college-name { margin: 0; color: #304457; font-size: 18px; font-weight: 500; line-height: 1.55; }
.subtitle { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; color: #26394d; font-size: 13px; font-weight: 500; }
.label-row { align-items: baseline; gap: 10px; }
.forgot-link { color: #087dab; font-size: 12px; font-weight: 500; text-decoration: none; }
.forgot-link:hover { text-decoration: underline; }
.input-wrap { position: relative; }
.input-wrap > i { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: #8292a0; font-size: 15px; pointer-events: none; }
.form-control {
  width: 100%;
  height: 52px;
  padding: 0 48px;
  border: 1px solid var(--border);
  border-radius: 11px;
  outline: 0;
  background: #f8fafb;
  color: var(--text);
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-control::placeholder { color: #9aa8b5; font-weight: 300; }
.form-control:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(2,132,199,.12); }
.toggle-password { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 8px; background: transparent; color: #788a98; cursor: pointer; }
.toggle-password:hover { background: #e9f3f8; color: var(--blue); }
.field-error { display: none; margin: 6px 0 0; color: #b62c39; font-size: 12px; }
.field-error.show { display: block; }
.form-control.is-invalid { border-color: #cf4450; box-shadow: 0 0 0 3px rgba(207,68,80,.1); }
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 51px; padding: 10px 18px; border: 1px solid transparent; border-radius: 10px; font-size: 14px; font-weight: 500; text-align: center; text-decoration: none; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, .toggle-password:focus-visible, .forgot-link:focus-visible { outline: 3px solid #f0b86e; outline-offset: 3px; }
.btn-primary { color: #fff; background: var(--navy); box-shadow: 0 8px 18px rgba(11,25,44,.15); }
.btn-primary:hover { background: #173450; box-shadow: 0 12px 22px rgba(11,25,44,.2); }
.btn-icon { font-size: 13px; }
.divider { display: flex; align-items: center; gap: 14px; margin: 25px 0 19px; color: #8b9ba9; font-size: 11px; white-space: nowrap; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: #e3e9ee; }
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-line { color: #fff; background: #06c755; }
.btn-line:hover { background: #05b94e; box-shadow: 0 8px 18px rgba(6,199,85,.18); }
.btn-line:disabled { color: #687b85; border-color: #dce7e5; background: #eaf1ef; box-shadow: none; cursor: not-allowed; }
.line-mark { display: inline-grid; place-items: center; width: 29px; height: 22px; border-radius: 6px; background: #fff; color: #06a847; font: 800 8px Arial, sans-serif; letter-spacing: -.04em; }
.btn-verify { border-color: #d5e4ee; color: #1b5877; background: #f1f7fa; }
.btn-verify:hover { background: #e6f2f7; }
.form-bottom { margin: 0; padding-top: 17px; border-top: 1px solid #edf0f2; color: #8a98a4; font-size: 11px; text-align: center; }
.form-bottom i { margin-right: 5px; }
.spinner { display: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.loading .spinner { display: inline-block; }
.btn.loading .btn-icon, .btn.loading .line-mark { display: none; }
.btn.loading { pointer-events: none; }
.btn:disabled { opacity: .8; cursor: wait; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  .form-panel { padding: 32px; }
  .brand-panel { padding: 32px; }
  .brand-tag { display: none; }
  .quick-actions { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  body { display: block; padding: 0; background: #fff; }
  .login-shell { display: block; min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
  .brand-panel { min-height: 0; padding: 26px 26px 30px; }
  .brand-content { padding: 38px 0 4px; }
  .brand-content h1 { margin: 12px 0 8px; font-size: 34px; }
  .brand-content p { font-size: 13px; }
  .brand-bottom, .feature-list { display: none; }
  .architecture { right: -85px; bottom: -85px; }
  .form-panel { min-height: 580px; padding: 24px 26px; }
  .form-content { padding: 38px 0; }
}
@media (max-width: 390px) {
  .form-panel { padding: 22px 18px; }
  .brand-panel { padding: 22px 18px 27px; }
  .brand-content h1 { font-size: 30px; }
  .heading-block h2 { font-size: 33px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
