:root {
  --orange: #f58220;
  --orange-dark: #c95f08;
  --black: #231f20;
  --grey: #4e4a4b;
  --muted: #736e6f;
  --line: #dedad9;
  --paper: #fff;
  --surface: #f5f4f2;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--black); background: var(--surface); font-family: "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, .92fr) minmax(510px, 1.08fr); }
.brand-stage { position: relative; min-height: 100vh; display: flex; flex-direction: column; padding: clamp(28px, 4vw, 58px); overflow: hidden; color: white; background: linear-gradient(148deg, #302c2d 0%, #1c191a 70%, #141213 100%); }
.brand-stage::after { content: ""; position: absolute; inset: auto -100px -170px auto; width: 520px; height: 520px; border-radius: 50%; background: var(--orange); opacity: .92; }
.brand-noise { position: absolute; inset: 0; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }
.brand-orbit { position: absolute; z-index: 1; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }
.orbit-one { right: -180px; bottom: -250px; width: 690px; height: 690px; }
.orbit-two { right: -72px; bottom: -145px; width: 470px; height: 470px; border-color: rgba(35,31,32,.18); }
.login-logo { position: relative; z-index: 2; width: 230px; height: 158px; display: grid; place-items: center; padding: 10px 17px; border-radius: 18px; background: white; box-shadow: 0 18px 45px rgba(0,0,0,.24); }
.login-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-message { position: relative; z-index: 2; max-width: 530px; margin: auto 0; padding: 55px 0 70px; }
.portal-pill { display: inline-flex; align-items: center; min-height: 27px; padding: 0 11px; color: var(--orange); border: 1px solid rgba(245,130,32,.28); border-radius: 999px; background: rgba(245,130,32,.08); font-size: 10px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; }
.brand-message h1 { margin: 22px 0 17px; font: 800 clamp(42px, 5vw, 67px)/1.04 "Roboto Slab", serif; letter-spacing: -2.2px; }
.brand-message h1 em { color: var(--orange); font-style: normal; }
.brand-message p { max-width: 420px; margin: 0; color: rgba(255,255,255,.59); font-size: 15px; line-height: 1.7; }
.brand-footer { position: relative; z-index: 2; display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.48); font-size: 10px; font-weight: 600; letter-spacing: .3px; }
.system-dot { width: 8px; height: 8px; border: 2px solid rgba(255,255,255,.3); border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(245,130,32,.1); }

.form-stage { min-height: 100vh; display: flex; flex-direction: column; padding: clamp(28px, 5vw, 72px); background: var(--surface); }
.mobile-login-brand { display: none; }
.login-card { width: min(100%, 465px); margin: auto; }
.login-heading .eyebrow { color: var(--orange-dark); font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.login-heading h2 { margin: 10px 0 9px; font: 800 clamp(31px, 3.5vw, 43px)/1.12 "Roboto Slab", serif; letter-spacing: -1.1px; }
.login-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.preview-notice { display: flex; align-items: flex-start; gap: 10px; margin: 25px 0 21px; padding: 12px 13px; border: 1px solid #f0d8c3; border-radius: 11px; background: #fff5ec; }
.preview-notice > span { width: 20px; height: 20px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #231f20; background: var(--orange); font-size: 10px; font-weight: 800; }
.preview-notice p { margin: 0; color: #7b5b42; font-size: 10px; line-height: 1.45; }
.preview-notice strong { color: #5b3a22; }
.login-form { display: grid; }
.field-label { margin-bottom: 7px; color: #4b4647; font-size: 11px; font-weight: 700; }
.input-shell { height: 51px; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); transition: border .15s ease, box-shadow .15s ease; }
.input-shell:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(245,130,32,.11); }
.input-icon { width: 20px; color: #9b9495; font-size: 13px; font-weight: 700; text-align: center; }
.lock-icon { font-size: 9px; transform: rotate(45deg); }
.input-shell input { min-width: 0; flex: 1; color: var(--black); border: 0; outline: 0; background: transparent; font-size: 12px; }
.input-shell input::placeholder { color: #aaa4a5; }
.password-toggle { width: 30px; height: 30px; color: #8a8384; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.password-toggle:hover { background: #f3f1ef; }
.password-label-row { display: flex; justify-content: space-between; }
.password-label-row a { color: var(--orange-dark); font-size: 10px; font-weight: 700; }
.remember-row { position: relative; display: flex; align-items: center; gap: 9px; width: fit-content; margin: -1px 0 22px; color: #676162; font-size: 10px; cursor: pointer; }
.remember-row input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.custom-checkbox { width: 18px; height: 18px; display: grid; place-items: center; color: transparent; border: 1px solid #ccc7c6; border-radius: 5px; background: white; font-size: 9px; }
.remember-row input:checked + .custom-checkbox { color: #231f20; border-color: var(--orange); background: var(--orange); }
.login-button { height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #231f20; border: 0; border-radius: 12px; background: var(--orange); box-shadow: 0 12px 26px rgba(245,130,32,.24); font-size: 12px; font-weight: 800; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }
.login-button:hover { transform: translateY(-1px); box-shadow: 0 15px 30px rgba(245,130,32,.29); }
.login-button b { font-size: 17px; transition: transform .16s ease; }.login-button:hover b { transform: translateX(3px); }
.account-note { margin-top: 24px; padding-top: 19px; border-top: 1px solid var(--line); text-align: center; }
.account-note > span { color: #4a4546; font-size: 10px; font-weight: 800; }.account-note p { margin: 4px 0 0; color: #8b8586; font-size: 9px; line-height: 1.45; }
.login-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; color: #989293; font-size: 9px; }
.login-footer nav { display: flex; gap: 14px; }.login-footer a:hover { color: var(--orange-dark); }

@media (max-width: 920px) {
  .login-shell { grid-template-columns: 1fr; }
  .brand-stage { display: none; }
  .form-stage { min-height: 100svh; padding: 22px clamp(18px, 6vw, 54px); }
  .mobile-login-brand { display: flex; align-items: center; gap: 11px; color: #4a4546; font-size: 11px; font-weight: 800; }
  .mobile-login-brand img { width: 58px; height: 52px; object-fit: contain; padding: 4px; border-radius: 9px; background: white; }
  .login-card { padding: 40px 0 30px; }
}

@media (max-width: 520px) {
  .form-stage { padding: 17px 18px; background: white; }
  .login-card { margin: 0 auto; padding-top: 45px; }
  .login-heading h2 { font-size: 32px; }
  .preview-notice { margin-top: 21px; }
  .input-shell { height: 54px; background: #fbfaf9; }
  .login-button { height: 54px; }
  .login-footer { flex-direction: column; align-items: center; margin-top: auto; padding-top: 28px; }
}
