:root {
  --red: #ed1b2f;
  --ink: #152033;
  --muted: #6b7689;
  --line: #e1e7ef;
  --soft: #fff0f2;
  --display-font: "Bahnschrift", "Segoe UI", Arial, sans-serif;
  --ui-font: "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  color: var(--ink);
  background: #f8fafc;
  font-family: var(--ui-font);
}
body { overflow: hidden; }
button, input { font: inherit; }
.auth-page {
  height: 100dvh;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(390px, .92fr);
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 83% 9%, rgba(224,235,252,.72), transparent 30%),
    linear-gradient(135deg, #fff 0%, #f9fbfd 62%, #fff2f4 100%);
}
.brand-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: clamp(48px, 8.5vh, 120px) clamp(34px, 3.6vw, 64px) 24px;
}
.campus {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: url("/static/images/login-campus-v24.jpg?v=24") center 52% / cover no-repeat;
  filter: saturate(.97);
}
.brand-panel::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.99) 0%, rgba(255,255,255,.96) 22%, rgba(255,255,255,.68) 42%, rgba(255,255,255,.08) 70%),
    linear-gradient(180deg, rgba(255,255,255,.7), transparent 24%, transparent 78%, rgba(255,255,255,.85));
  pointer-events: none;
}
.brand-copy {
  position: relative;
  z-index: 3;
  width: min(44%, 500px);
  min-width: 390px;
}
.brand-copy h1 {
  margin: 0 0 20px;
  white-space: nowrap;
  font-family: var(--display-font);
  font-size: clamp(44px, 3.7vw, 62px);
  font-stretch: condensed;
  font-weight: 700;
  letter-spacing: -.6px;
}
.brand-copy h1 span { color: var(--red); }
.brand-copy h2 {
  max-width: 500px;
  margin: 0;
  font-size: clamp(25px, 2vw, 34px);
  line-height: 1.28;
}
.brand-rule {
  display: block;
  width: 76px;
  height: 4px;
  margin: 34px 0 38px;
  border-radius: 999px;
  background: var(--red);
}
.feature-list {
  display: grid;
  gap: 22px;
  max-width: 440px;
}
.feature-list article {
  display: grid;
  grid-template-columns: 66px 1fr;
  align-items: center;
  gap: 18px;
}
.feature-list b {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 1px solid #ffd5da;
  border-radius: 15px;
  color: var(--red);
  background: rgba(255,241,243,.92);
}
.feature-list svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-list strong {
  display: block;
  margin-bottom: 7px;
  font-size: 16px;
}
.feature-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.form-panel {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px clamp(34px, 3vw, 58px) 42px 18px;
}
.auth-card {
  width: 100%;
  max-width: 450px;
  padding: 50px 36px 36px;
  border: 1px solid rgba(255,255,255,.96);
  border-radius: 30px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 24px 60px rgba(31,41,55,.13);
}
.shield {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  margin: 0 auto 27px;
  border: 1px solid #ffd2d7;
  border-radius: 19px;
  color: var(--red);
  background: var(--soft);
  box-shadow: 0 10px 24px rgba(237,27,47,.13);
}
.shield svg {
  width: 48px;
  height: 48px;
  fill: var(--red);
  stroke: #fff;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.auth-card h2 {
  margin: 0;
  text-align: center;
  font-family: var(--display-font);
  font-size: 31px;
  font-stretch: condensed;
}
.intro {
  margin: 11px 0 33px;
  color: var(--muted);
  text-align: center;
  font-size: 13.5px;
}
.auth-card form { display: grid; gap: 20px; }
.auth-card label { font-size: 13px; font-weight: 700; }
.input-shell { position: relative; margin-top: 9px; }
.input-shell > svg {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 15px;
  width: 21px;
  height: 21px;
  transform: translateY(-50%);
  fill: none;
  stroke: #8c98aa;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.auth-card input {
  width: 100%;
  height: 56px;
  margin: 0;
  padding: 0 15px;
  border: 1px solid #d7dee8;
  border-radius: 11px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
}
.input-shell input { padding-left: 50px; }
.input-shell input:focus {
  border-color: #ff8b96;
  box-shadow: 0 0 0 3px rgba(237,27,47,.09);
}
.password-wrap button {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 12px;
  width: 32px;
  height: 32px;
  transform: translateY(-50%);
  border: 0;
  color: #738095;
  background: transparent;
  cursor: pointer;
}
.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
}
.remember {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-weight: 400 !important;
}
.remember input {
  width: 18px;
  height: 18px;
  margin: 0 9px 0 0;
  accent-color: var(--red);
}
.link {
  padding: 0;
  border: 0;
  color: var(--red);
  background: none;
  font-weight: 700;
  cursor: pointer;
}
.primary, .secondary {
  height: 58px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}
.primary {
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, #ed1b2f, #f20b20);
  box-shadow: 0 11px 23px rgba(237,27,47,.2);
}
.secondary { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.message { min-height: 16px; margin: -8px 0 0; color: #c91f31; font-size: 12px; }
.support {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  color: #778196;
  text-align: center;
  font-size: 13px;
}
.auth-page footer {
  grid-column: 1 / -1;
  padding: 14px 18px 17px;
  border-top: 1px solid #edf0f4;
  color: #566174;
  background: rgba(255,255,255,.96);
  text-align: center;
  font-size: 16px;
  line-height: 1.55;
}
#setupView .intro { margin-bottom: 16px; }
#setupView form, #forgotView form { gap: 12px; }
#setupView input, #forgotView input { height: 45px; margin-top: 5px; }
#setupView .primary, #forgotView .primary, #forgotView .secondary { height: 46px; }
@media (max-height: 820px) and (min-width: 861px) {
  .auth-page { min-height: 590px; }
  .brand-panel { padding-top: 24px; }
  .brand-copy h1 { margin-bottom: 10px; font-size: 39px; }
  .brand-copy h2 { font-size: 22px; }
  .brand-rule { margin: 16px 0 18px; }
  .feature-list { gap: 10px; }
  .feature-list article { grid-template-columns: 44px 1fr; gap: 12px; }
  .feature-list b { width: 44px; height: 44px; border-radius: 12px; }
  .feature-list svg { width: 23px; height: 23px; }
  .feature-list strong { margin-bottom: 3px; font-size: 14px; }
  .feature-list p { font-size: 11.5px; line-height: 1.35; }
  .form-panel { padding-top: 20px; padding-bottom: 20px; }
  .auth-card { max-width: 390px; padding: 22px 27px 20px; border-radius: 24px; }
  .shield { width: 58px; height: 58px; margin-bottom: 12px; border-radius: 15px; }
  .shield svg { width: 34px; height: 34px; }
  .auth-card h2 { font-size: 25px; }
  .intro { margin: 7px 0 15px; }
  .auth-card form { gap: 12px; }
  .auth-card input { height: 43px; }
  .primary, .secondary { height: 44px; }
  .support { margin-top: 14px; padding-top: 13px; }
  .auth-page footer { padding: 6px 18px 7px; font-size: 11px; }
}
@media (max-width: 860px) {
  body { overflow: auto; }
  .auth-page { display: block; height: auto; min-height: 100dvh; overflow: visible; }
  .brand-panel { min-height: 600px; padding: 26px 20px 275px; }
  .brand-copy { width: auto; min-width: 0; }
  .brand-copy h1 { white-space: normal; font-size: 37px; }
  .brand-copy h2 { font-size: 22px; }
  .brand-rule { margin: 18px 0 20px; }
  .feature-list { grid-template-columns: 1fr 1fr; gap: 12px; }
  .feature-list article { grid-template-columns: 40px 1fr; gap: 9px; }
  .feature-list b { width: 40px; height: 40px; border-radius: 11px; }
  .feature-list svg { width: 21px; height: 21px; }
  .feature-list strong { font-size: 12.5px; }
  .feature-list p { font-size: 10.5px; }
  .campus { background-position: center bottom; }
  .brand-panel::before { background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.83) 52%, rgba(255,255,255,.06) 82%); }
  .form-panel { position: relative; z-index: 4; margin-top: -46px; padding: 0 16px 24px; }
  .auth-card { max-width: 500px; padding: 26px 22px; }
  .auth-page footer { font-size: 12px; }
}
@media (max-width: 480px) {
  .brand-panel { min-height: 560px; padding-bottom: 240px; }
  .brand-copy h1 { font-size: 31px; }
  .brand-copy h2 { font-size: 19px; }
  .feature-list { gap: 9px; }
  .feature-list p { display: none; }
  .auth-card { border-radius: 22px; }
  .form-row { font-size: 12px; }
}

/* AP OneFlow clean brand assets - 2.0.0-preview.58 */
.auth-brand-logo{display:block;width:min(100%,430px);height:auto;margin:0 0 22px;object-fit:contain;object-position:left center}
@media(max-height:760px) and (min-width:861px){.auth-brand-logo{width:340px;margin-bottom:12px}}
@media(max-width:860px){.auth-brand-logo{width:min(100%,360px);margin-bottom:16px}}
@media(max-width:480px){.auth-brand-logo{width:min(100%,300px)}}

/* AP OneFlow stacked right-aligned official logo - 2.0.0-preview.59 */
.auth-brand-logo{width:min(100%,300px);height:auto;object-fit:contain;object-position:left center}
@media(max-height:760px) and (min-width:861px){.auth-brand-logo{width:250px}}
@media(max-width:860px){.auth-brand-logo{width:min(100%,260px)}}
@media(max-width:480px){.auth-brand-logo{width:min(100%,220px)}}

/* AP OneFlow official stacked logo proportion correction - 2.0.0-preview.60 */
.auth-brand-logo{width:min(100%,340px);height:auto;object-fit:contain;object-position:left center}
@media(max-height:760px) and (min-width:861px){.auth-brand-logo{width:290px}}
@media(max-width:860px){.auth-brand-logo{width:min(100%,300px)}}
@media(max-width:480px){.auth-brand-logo{width:min(100%,250px)}}

/* AP OneFlow logo weight and visual alignment correction - 2.0.0-preview.61 */
.auth-brand-logo{width:min(100%,360px);height:auto;object-fit:contain;object-position:left center}
@media(max-height:760px) and (min-width:861px){.auth-brand-logo{width:310px}}
@media(max-width:860px){.auth-brand-logo{width:min(100%,320px)}}
@media(max-width:480px){.auth-brand-logo{width:min(100%,270px)}}
/* AP_ONEFLOW_PREVIEW_01_AUTH_BRAND:START */
.auth-brand-logo {
  width: min(100%, 310px);
  height: auto;
  max-height: 76px;
  margin: 0 0 18px;
  object-fit: contain;
  object-position: left center;
}
/* AP_ONEFLOW_PREVIEW_01_AUTH_BRAND:END */
