:root {
  --login-navy: #04142a;
  --login-blue: #0667d9;
  --login-cyan: #00c7e8;
  --login-orange: #f6a300;
  --login-text: #0a2447;
  --login-muted: #657892;
  --login-line: rgba(44, 98, 157, .17);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body.newson-login-page {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--login-text);
  background: var(--login-navy);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.auth-shell { position: relative; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(430px, .82fr); isolation: isolate; }
.auth-visual {
  position: relative;
  min-height: 100vh;
  padding: clamp(34px, 6vw, 78px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: #fff;
  background-color: #061a35;
  background-position: center;
  background-size: cover;
}
.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(115deg, rgba(3,15,33,.97) 0%, rgba(5,31,62,.91) 52%, rgba(5,43,81,.64) 100%),
    radial-gradient(circle at 78% 16%, rgba(0,199,232,.28), transparent 25rem);
}
.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .22;
  background-image:
    linear-gradient(rgba(143,207,255,.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143,207,255,.15) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(135deg, #000, transparent 70%);
}
.auth-orb { position: absolute; border: 1px solid rgba(101,221,255,.20); border-radius: 50%; pointer-events: none; }
.auth-orb.one { width: 420px; height: 420px; top: -210px; right: -115px; box-shadow: 0 0 0 55px rgba(0,199,232,.035), 0 0 0 115px rgba(0,199,232,.025); }
.auth-orb.two { width: 230px; height: 230px; bottom: -105px; left: -65px; box-shadow: 0 0 0 38px rgba(246,163,0,.035); }
.auth-brand { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.auth-brand img { width: min(240px, 53vw); height: auto; }
.auth-secure-pill { padding: 9px 12px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; color: rgba(229,241,255,.76); background: rgba(255,255,255,.06); font-size: 10px; font-weight: 700; backdrop-filter: blur(10px); }
.auth-secure-pill i { color: var(--login-cyan); }
.auth-message { position: relative; z-index: 1; max-width: 760px; padding: 40px 0; }
.auth-kicker { margin: 0 0 16px; display: inline-flex; align-items: center; gap: 10px; color: #80e8f7; font-size: 10px; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.auth-kicker::before { content: ""; width: 30px; height: 2px; background: linear-gradient(90deg, var(--login-orange), var(--login-cyan)); }
.auth-message h1 { margin: 0; color: #fff; font-size: clamp(38px, 5.6vw, 76px); font-weight: 820; letter-spacing: -.058em; line-height: .98; }
.auth-message h1 span { display: block; color: transparent; background: linear-gradient(90deg, #fff, #8eeeff 72%); background-clip: text; -webkit-background-clip: text; }
.auth-message p { max-width: 650px; margin: 23px 0 0; color: rgba(220,236,255,.70); font-size: clamp(14px, 1.3vw, 17px); line-height: 1.75; }
.auth-features { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.auth-feature { padding: 10px 13px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.10); border-radius: 12px; color: rgba(235,245,255,.76); background: rgba(255,255,255,.055); font-size: 11px; font-weight: 650; backdrop-filter: blur(8px); }
.auth-feature i { color: var(--login-orange); }
.auth-visual-footer { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: rgba(213,232,255,.45); font-size: 10px; }
.auth-system-status { display: inline-flex; align-items: center; gap: 8px; }
.auth-system-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1cc98b; box-shadow: 0 0 0 5px rgba(28,201,139,.11); }

.auth-form-side {
  position: relative;
  min-height: 100vh;
  padding: clamp(25px, 4vw, 64px);
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 100% 0, rgba(0,199,232,.11), transparent 24rem),
    linear-gradient(155deg, #f8fbff, #edf4fc);
}
.auth-form-side::before { content: ""; position: absolute; inset: 0; opacity: .38; pointer-events: none; background-image: linear-gradient(rgba(22,88,154,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(22,88,154,.045) 1px, transparent 1px); background-size: 38px 38px; mask-image: linear-gradient(to bottom, #000, transparent 75%); }
.auth-card { position: relative; z-index: 1; width: min(100%, 470px); padding: clamp(28px, 4vw, 46px); border: 1px solid rgba(255,255,255,.88); border-radius: 30px; background: rgba(255,255,255,.88); box-shadow: 0 30px 90px rgba(5,31,65,.16); backdrop-filter: blur(22px) saturate(140%); }
.auth-card::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(145deg, rgba(255,255,255,.84), rgba(255,255,255,.36)); }
.auth-mobile-logo { display: none; margin-bottom: 25px; }
.auth-mobile-logo img { width: 190px; filter: brightness(.16) saturate(5) hue-rotate(175deg); }
.auth-card-icon { width: 52px; height: 52px; margin-bottom: 21px; display: grid; place-items: center; border-radius: 17px; color: #fff; background: linear-gradient(145deg, #0b84ff, #0658bd); box-shadow: 0 13px 28px rgba(6,103,217,.24); font-size: 19px; }
.auth-card h2 { margin: 0; color: #071d3a; font-size: clamp(27px, 3vw, 36px); font-weight: 820; letter-spacing: -.038em; }
.auth-card-subtitle { margin: 9px 0 28px; color: var(--login-muted); font-size: 13px; line-height: 1.6; }
.auth-field { margin-bottom: 18px; }
.auth-field label { margin: 0 0 8px; display: block; color: #183a60; font-size: 11px; font-weight: 780; }
.auth-input-wrap { position: relative; }
.auth-input-icon { position: absolute; top: 50%; left: 15px; z-index: 1; color: #5d7898; transform: translateY(-50%); }
.auth-input {
  width: 100%;
  height: 52px;
  padding: 0 46px 0 44px;
  border: 1px solid var(--login-line);
  border-radius: 15px;
  color: var(--login-text);
  background: rgba(248,251,255,.92);
  box-shadow: inset 0 1px rgba(255,255,255,.8);
  outline: none;
  transition: .22s ease;
}
.auth-input::placeholder { color: #9aabc0; }
.auth-input:focus { border-color: rgba(6,103,217,.48); background: #fff; box-shadow: 0 0 0 4px rgba(6,103,217,.10), 0 10px 24px rgba(14,54,100,.06); }
.auth-password-toggle { position: absolute; top: 50%; right: 10px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 10px; color: #70859f; background: transparent; transform: translateY(-50%); cursor: pointer; }
.auth-password-toggle:hover { color: var(--login-blue); background: #eaf4ff; }
.auth-error { margin-top: 7px; display: block; color: #d83f50; font-size: 11px; line-height: 1.4; }
.auth-options { margin: 3px 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-check { display: inline-flex; align-items: center; gap: 8px; color: #667b96; font-size: 11px; font-weight: 620; cursor: pointer; }
.auth-check input { width: 16px; height: 16px; accent-color: var(--login-blue); }
.auth-forgot { color: var(--login-blue); font-size: 11px; font-weight: 760; text-decoration: none; }
.auth-forgot:hover { text-decoration: underline; }
.auth-submit { width: 100%; height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 15px; color: #fff; background: linear-gradient(135deg, #0b84ff, #0558bb); box-shadow: 0 14px 30px rgba(6,103,217,.25); font-size: 12px; font-weight: 800; letter-spacing: .035em; cursor: pointer; transition: .23s cubic-bezier(.2,.75,.25,1); }
.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(6,103,217,.30); }
.auth-submit:active { transform: translateY(0); }
.auth-submit.is-loading { pointer-events: none; opacity: .84; }
.auth-submit .auth-spinner { display: none; width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.42); border-top-color: #fff; border-radius: 50%; animation: login-spin .8s linear infinite; }
.auth-submit.is-loading .auth-spinner { display: inline-block; }
.auth-submit.is-loading .auth-submit-icon { display: none; }
@keyframes login-spin { to { transform: rotate(360deg); } }
.auth-card-footer { margin-top: 23px; padding-top: 19px; display: flex; align-items: center; gap: 9px; border-top: 1px solid rgba(44,98,157,.10); color: #8395aa; font-size: 10px; line-height: 1.5; }
.auth-card-footer i { color: var(--login-blue); }

@media (max-width: 1040px) {
  .auth-shell { grid-template-columns: 1fr minmax(410px, .9fr); }
  .auth-visual { padding: 44px; }
  .auth-message h1 { font-size: 52px; }
}
@media (max-width: 860px) {
  .auth-shell { display: block; background: linear-gradient(145deg, #05172f, #09345f); }
  .auth-visual { position: fixed; inset: 0; min-height: 100%; padding: 24px; opacity: .35; }
  .auth-visual .auth-brand, .auth-visual .auth-message, .auth-visual .auth-visual-footer { display: none; }
  .auth-form-side { min-height: 100vh; padding: 26px 18px; background: rgba(4,20,42,.28); }
  .auth-form-side::before { display: none; }
  .auth-card { width: min(100%, 500px); background: rgba(255,255,255,.94); }
  .auth-mobile-logo { display: block; }
}
@media (max-width: 520px) {
  .auth-form-side { padding: 14px; align-items: center; }
  .auth-card { padding: 27px 21px; border-radius: 24px; }
  .auth-card-icon { width: 47px; height: 47px; border-radius: 15px; }
  .auth-card h2 { font-size: 28px; }
  .auth-options { align-items: flex-start; flex-direction: column; }
}
@media (max-height: 660px) and (min-width: 861px) {
  .auth-card { padding-top: 28px; padding-bottom: 28px; }
  .auth-card-icon { margin-bottom: 14px; }
  .auth-card-subtitle { margin-bottom: 18px; }
  .auth-field { margin-bottom: 13px; }
  .auth-input, .auth-submit { height: 47px; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.auth-alert { margin-bottom: 18px; padding: 12px 14px; border: 1px solid rgba(25,170,119,.18); border-radius: 13px; color: #137553; background: rgba(25,170,119,.08); font-size: 11px; line-height: 1.5; }
.auth-alert.is-danger { color: #b43242; border-color: rgba(216,63,80,.18); background: rgba(216,63,80,.07); }
.auth-back-link { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; color: var(--login-blue); font-size: 11px; font-weight: 750; text-decoration: none; }
.auth-back-link:hover { text-decoration: underline; }
.auth-inline-copy { margin: 0 0 21px; color: var(--login-muted); font-size: 12px; line-height: 1.65; }
.auth-inline-action { padding: 0; border: 0; color: var(--login-blue); background: transparent; font-size: inherit; font-weight: 750; cursor: pointer; }
