/* =========================================================
   PRODUCTION MAIN — PREMIUM SECURE LOGIN
   File: static/css/login.css
   Visual refresh only. Existing HTML, JavaScript, routes,
   authentication, Turnstile and form behaviour remain unchanged.
   Requires the existing theme.css for global reset and fonts.
   ========================================================= */

body:has(.login-page) {
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
  color: var(--login-ink);
}

.login-page button {
  cursor: pointer;
}

.login-page button:disabled {
  cursor: not-allowed;
  opacity: .65;
}

.login-page svg {
  display: block;
  max-width: 100%;
}

.login-panel {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: transparent;
}

.login-container {
  width: min(100%, 480px);
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(225, 231, 239, .95);
  border-radius: 20px;
  background: var(--login-surface);
  box-shadow: var(--login-shadow);
}

/* Main two-panel composition */
.login-page {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: stretch;
  gap: clamp(14px, 1.8vw, 22px);
  width: min(100%, 1240px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(12px, 2.2vh, 24px);
}

/* Left brand / visual panel */
.visual-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid rgba(96, 165, 250, .22);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 82% 28%, rgba(47, 113, 224, .32), transparent 38%),
    radial-gradient(ellipse at 12% 92%, rgba(242, 138, 67, .10), transparent 35%),
    linear-gradient(145deg, #101d35 0%, #142a4b 55%, #0d1b30 100%);
  box-shadow: 0 22px 58px rgba(20, 43, 78, .14);
  color: #fff;
}

.visual-panel::before {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: 190px;
  height: 190px;
  border-top: 1px solid rgba(147, 197, 253, .16);
  border-right: 1px solid rgba(147, 197, 253, .16);
  border-radius: 0 22px 0 0;
  content: "";
  pointer-events: none;
}

.visual-panel::after {
  position: absolute;
  z-index: -1;
  right: -105px;
  bottom: 48px;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(96, 165, 250, .11);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(96, 165, 250, .025), 0 0 0 52px rgba(96, 165, 250, .02);
  content: "";
  pointer-events: none;
}

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 12px;
}

.brand-mark,
.mobile-brand-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(147, 197, 253, .36);
  border-radius: 14px;
  background: linear-gradient(145deg, #347cf1, #19469a);
  color: #fff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, .25);
}

.brand-mark svg,
.mobile-brand-icon svg {
  width: 29px;
  height: 29px;
}

.brand-copy {
  min-width: 0;
}

.brand-name {
  color: #f3f7ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .55px;
  white-space: nowrap;
}

.brand-name span {
  color: #ffad70;
}

.brand-caption {
  margin-top: 3px;
  color: #9bb2d1;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
}

.visual-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding: clamp(24px, 4vh, 46px) 0;
}

.eyebrow,
.form-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #a9c8f4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.35px;
}

.eyebrow-dot,
.heading-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--login-orange);
  box-shadow: 0 0 11px rgba(255, 138, 61, .52);
}

.hero-title {
  max-width: 600px;
  margin: 20px 0 13px;
  color: #fff;
  font-size: clamp(29px, 3.2vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.6px;
}

.hero-title br {
  display: block;
}

.hero-description {
  max-width: 420px;
  margin: 0;
  color: #afc0d8;
  font-size: 13px;
  line-height: 1.8;
}

.hero-divider {
  width: 58px;
  height: 3px;
  margin: 22px 0 6px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--login-orange), #ffc18e);
}

/* Decorative gear illustration */
.gear-artwork {
  position: relative;
  width: 100%;
  max-width: 570px;
  margin: 0 auto;
  isolation: isolate;
}

.gear-glow {
  position: absolute;
  z-index: -1;
  top: 20%;
  left: 22%;
  width: 56%;
  height: 55%;
  border-radius: 50%;
  background: rgba(55, 125, 240, .22);
  filter: blur(42px);
}

.gear-system-svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-height: 330px;
  overflow: visible;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .10));
}

.gear-status {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid rgba(174, 205, 248, .24);
  border-radius: 12px;
  background: rgba(17, 39, 70, .9);
  box-shadow: 0 9px 26px rgba(0, 0, 0, .17);
  backdrop-filter: blur(12px);
}

.status-top {
  top: 7%;
  right: 0;
}

.status-bottom {
  bottom: 8%;
  left: 0;
}

.status-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: rgba(255, 138, 61, .14);
  color: #ffb477;
  font-size: 16px;
}

.gear-status strong,
.gear-status small {
  display: block;
}

.gear-status strong {
  color: #f1f6ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
}

.gear-status small {
  margin-top: 2px;
  color: #a7bbd6;
  font-size: 9px;
}

.live-indicator,
.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, .42);
}

.visual-footer {
  position: relative;
  z-index: 2;
  padding-top: 17px;
  border-top: 1px solid rgba(173, 200, 238, .15);
}

.visual-footer-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.visual-footer-copy strong {
  color: #c1d1e7;
  font-size: 9px;
  letter-spacing: 1.1px;
}

.visual-footer-copy strong:not(:first-child) {
  color: #849fbe;
}

.visual-copyright {
  position: relative;
  z-index: 1;
  margin-top: 13px;
  color: #8196b2;
  font-size: 8px;
  letter-spacing: .7px;
}

.copyright-separator {
  margin: 0 5px;
  color: var(--login-orange);
}

/* Right login panel */
.form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: clamp(20px, 2.5vh, 30px) clamp(22px, 3vw, 38px);
  border: 1px solid #e6ebf2;
  border-radius: 22px;
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--login-shadow);
}

.form-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 36px;
  gap: 12px;
}

.secure-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #dcefe5;
  border-radius: 9px;
  background: #f1faf5;
  color: #218052;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
}

.secure-icon {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #d9f4e5;
  font-size: 10px;
}

.mobile-brand {
  display: none;
}

.form-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 18px 0;
}

.form-heading {
  margin-bottom: 20px;
}

.form-heading .form-eyebrow {
  color: var(--login-blue);
  font-size: 10px;
  letter-spacing: 1.2px;
}

.form-heading h2 {
  margin: 10px 0 7px;
  color: #17243a;
  font-size: clamp(27px, 2.5vw, 34px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -1.1px;
}

.form-heading p {
  max-width: 360px;
  margin: 0;
  color: #7a8799;
  font-size: 13px;
  line-height: 1.65;
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: #53647b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .8px;
}

.section-number {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #f7f9fc;
  color: #7b8ba2;
  font-size: 9px;
}

.role-section {
  margin-bottom: 18px;
}

.role-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.role-option {
  display: block;
  min-width: 0;
  cursor: pointer;
}

.role-option>input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.role-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid #e1e7ef;
  border-radius: 12px;
  background: #fff;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.role-option:hover .role-card {
  transform: translateY(-1px);
  border-color: #a8c6f7;
  background: #fafdff;
}

.role-option>input:checked+.role-card {
  border-color: #5b91ed;
  background: #f1f6ff;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .07), 0 5px 14px rgba(37, 99, 235, .06);
}

.role-option>input:focus-visible+.role-card {
  outline: 3px solid rgba(37, 99, 235, .22);
  outline-offset: 2px;
}

.role-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 10px;
}

.role-icon svg {
  width: 22px;
  height: 22px;
}

.admin-icon {
  background: #eaf1ff;
  color: #2563eb;
}

.operator-icon {
  background: #fff1e6;
  color: #e77a2c;
}

.role-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.role-info strong {
  color: #25334a;
  font-size: 12px;
  font-weight: 750;
}

.role-info small {
  color: #8490a1;
  font-size: 10px;
}

.role-check {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 1px solid #d5dde8;
  border-radius: 50%;
  background: #fff;
}

.role-option>input:checked+.role-card .role-check {
  border: 5px solid var(--login-blue);
}

/* Credentials and input controls */
#loginForm {
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 0;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.input-group>label {
  color: #34445b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .55px;
}

.input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid #dce3ec;
  border-radius: 12px;
  background: #fbfcfe;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.input-wrapper:hover {
  border-color: #b8c7da;
}

.input-wrapper:focus-within {
  border-color: #4b86eb;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .09);
}

.input-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: #8a9ab0;
}

.input-icon svg {
  width: 20px;
  height: 20px;
}

.input-wrapper input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 10px 0;
  border: 0;
  outline: none;
  background: transparent;
  box-shadow: none;
  color: #24344b;
  font-size: 13px;
}

.input-wrapper input::placeholder {
  color: #a4afbd;
}

.input-wrapper input:focus {
  border: 0;
  outline: none;
  background: transparent;
  box-shadow: none;
}

.password-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  padding: 6px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #8796aa;
  transition: background .18s ease, color .18s ease;
}

.password-toggle:hover {
  background: #edf3fb;
  color: var(--login-blue);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

/* Cloudflare Turnstile */
.security-section {
  min-width: 0;
}

.turnstile-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 68px;
  padding: 8px;
  overflow: hidden;
  border: 1px solid #e5eaf1;
  border-radius: 10px;
  background: #f8fafc;
}

.cf-turnstile {
  max-width: 100%;
}

/* Error states */
.error {
  align-items: flex-start;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fff4f4;
  color: #b42318;
  font-size: 12px;
  line-height: 1.55;
}

.error-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  font-weight: 900;
}

.error-text {
  overflow-wrap: anywhere;
}

/* Submit */
.login-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 12px 42px 12px 16px;
  border: 1px solid #2456c5;
  border-radius: 11px;
  background: linear-gradient(110deg, #2864df, #1748b5);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .2px;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .19);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.login-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: linear-gradient(110deg, #3476f0, #1d53c8);
  box-shadow: 0 11px 24px rgba(37, 99, 235, .25);
}

.login-btn:active:not(:disabled) {
  transform: translateY(0);
}

.login-btn:disabled {
  cursor: wait;
  transform: none;
}

.login-arrow {
  position: absolute;
  right: 15px;
  display: grid;
  place-items: center;
}

.login-arrow svg {
  width: 19px;
  height: 19px;
}

.loading {
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: login-spin .75s linear infinite;
}

@keyframes login-spin {
  to {
    transform: rotate(360deg);
  }
}

.login-hint {
  margin: -2px 0 0;
  color: #8b98a9;
  font-size: 11px;
  text-align: center;
  line-height: 1.6;
}

/* Footer */
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 9px;
  padding-top: 14px;
  border-top: 1px solid #edf0f5;
}

.system-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #69788c;
  font-size: 11px;
}

.system-status .status-dot {
  width: 7px;
  height: 7px;
}

.footer-version {
  color: #9aa5b4;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .8px;
}

.hidden {
  display: none !important;
}

/* Laptop tuning */
@media (min-width: 1200px) {
  .gear-system-svg {
    max-height: 310px;
  }
}

@media (max-width: 1199px) {
  .login-page {
    grid-template-columns: minmax(0, 1fr) minmax(350px, .95fr);
    gap: 14px;
  }

  .visual-panel {
    padding: 25px;
  }

  .form-panel {
    padding: 20px 24px;
  }

  .hero-title {
    font-size: clamp(27px, 3vw, 36px);
  }

  .gear-system-svg {
    max-height: 260px;
  }

  .gear-status {
    padding: 8px 10px;
  }

  .role-card {
    gap: 8px;
    padding: 10px;
  }
}

/* Tablet: simplify to a focused login card */
@media (max-width: 850px) {
  .login-page {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 620px);
    min-height: 100vh;
    min-height: 100svh;
    padding: 16px;
  }

  .visual-panel {
    display: none;
  }

  .form-panel {
    min-height: calc(100vh - 32px);
    min-height: calc(100svh - 32px);
    padding: 25px 30px 20px;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
  }

  .mobile-brand-icon {
    width: 39px;
    height: 39px;
  }

  .mobile-brand-icon svg {
    width: 26px;
    height: 26px;
  }

  .mobile-brand strong,
  .mobile-brand small {
    display: block;
  }

  .mobile-brand strong {
    color: #24344b;
    font-size: 11px;
    font-weight: 800;
  }

  .mobile-brand small {
    margin-top: 3px;
    color: #8290a3;
    font-size: 8px;
    letter-spacing: 1.2px;
  }

  .form-header {
    justify-content: space-between;
    gap: 10px;
  }

  .form-content {
    padding: 28px 0;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .login-panel {
    min-height: 100svh;
    padding: 14px;
  }

  .login-container {
    padding: 23px;
    border-radius: 17px;
  }

  .login-page {
    min-height: 100svh;
    padding: 0;
  }

  .form-panel {
    min-height: 100svh;
    padding: 20px 22px 16px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .form-header {
    align-items: center;
  }

  .mobile-brand {
    gap: 8px;
  }

  .mobile-brand strong {
    font-size: 10px;
  }

  .secure-label {
    gap: 5px;
    padding: 6px 8px;
    font-size: 8px;
  }

  .form-content {
    padding: 28px 0;
  }

  .form-heading {
    margin-bottom: 20px;
  }

  .form-heading h2 {
    font-size: 28px;
  }

  .form-heading p {
    font-size: 12px;
  }

  .role-selector {
    gap: 8px;
  }

  .role-card {
    min-height: 68px;
    gap: 7px;
    padding: 9px 8px;
  }

  .role-icon {
    width: 31px;
    height: 31px;
  }

  .role-icon svg {
    width: 19px;
    height: 19px;
  }

  .role-info strong {
    font-size: 10px;
  }

  .role-info small {
    font-size: 8px;
  }

  .role-check {
    width: 14px;
    height: 14px;
  }

  .input-wrapper {
    min-height: 46px;
    padding: 0 10px;
  }

  .input-wrapper input {
    font-size: 12px;
  }

  .turnstile-container {
    justify-content: flex-start;
    padding: 7px 4px;
  }

  .form-footer {
    align-items: flex-start;
  }

  .footer-version {
    font-size: 8px;
  }
}

@media (max-width: 360px) {
  .form-panel {
    padding-right: 16px;
    padding-left: 16px;
  }

  .role-card {
    gap: 6px;
    padding: 8px 6px;
  }

  .role-icon {
    width: 28px;
    height: 28px;
  }

  .role-info small {
    font-size: 7px;
  }

  .secure-label {
    font-size: 7px;
  }
}

/* Short desktop screens: keep all authentication controls accessible */
@media (min-width: 851px) and (max-height: 820px) {
  .login-page {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .visual-panel {
    padding-top: 20px;
    padding-bottom: 14px;
  }

  .form-panel {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .visual-content {
    padding: 12px 0 8px;
  }

  .hero-title {
    margin: 13px 0 9px;
    font-size: clamp(25px, 2.7vw, 32px);
  }

  .hero-divider {
    margin-top: 14px;
  }

  .gear-system-svg {
    max-height: 220px;
  }

  .form-content {
    padding: 6px 0;
  }

  .form-heading {
    margin-bottom: 12px;
  }

  .form-heading h2 {
    margin-top: 7px;
    font-size: 27px;
  }

  .role-section {
    margin-bottom: 10px;
  }

  .role-card {
    min-height: 62px;
    padding: 8px;
  }

  #loginForm {
    gap: 9px;
  }

  .input-wrapper,
  .input-wrapper input {
    min-height: 41px;
  }

  .turnstile-container {
    min-height: 58px;
    padding: 4px;
  }

  .login-btn {
    min-height: 43px;
  }

  .form-footer {
    padding-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* Responsive refinement: two-panel desktop, focused tablet/mobile form. */
@media (min-width: 851px) {
 .login-page { align-items: stretch; }
 .visual-panel, .form-panel { min-height: 0; }
}
@media (max-width: 1199px) and (min-width: 851px) {
 .login-page { grid-template-columns: minmax(0, 1fr) minmax(350px, .95fr); gap: 16px; padding: 18px; }
 .visual-panel { padding: 24px; }
 .form-panel { padding: 20px 24px; }
 .hero-title { font-size: clamp(29px, 3.2vw, 40px); }
}
@media (max-width: 850px) {
 body:has(.login-page) { background: radial-gradient(ellipse at 10% 0%, rgba(219, 234, 254, .65), transparent 40%), #f5f8fc; }
 .login-page { grid-template-columns: minmax(0, 1fr); width: min(100%, 620px); min-height: 100vh; min-height: 100svh; padding: clamp(16px, 4vw, 28px); }
 .visual-panel { display: none; }
 .form-panel { min-height: calc(100vh - 32px); min-height: calc(100svh - 32px); padding: clamp(24px, 5vw, 38px); border-radius: 22px; box-shadow: 0 20px 54px rgba(34, 62, 104, .10); }
 .mobile-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
 .mobile-brand strong, .mobile-brand small { display: block; }
 .mobile-brand strong { color: #24344b; font-size: 11px; font-weight: 800; }
 .mobile-brand small { margin-top: 3px; color: #8290a3; font-size: 8px; letter-spacing: 1.2px; }
 .form-header { justify-content: space-between; gap: 10px; }
}
@media (max-width: 480px) {
 .login-page { width: 100%; padding: 0; }
 .form-panel { min-height: 100vh; min-height: 100svh; padding: max(20px, env(safe-area-inset-top)) 22px max(16px, env(safe-area-inset-bottom)); border: 0; border-radius: 0; box-shadow: none; }
 .form-content { padding: 24px 0; }
 .form-heading h2 { font-size: 28px; }
 .input-wrapper, .login-btn { min-height: 52px; }
 .input-wrapper input { font-size: 16px; }
 .role-card { min-height: 64px; }
}
@media (max-width: 360px) {
 .form-panel { padding-right: 16px; padding-left: 16px; }
 .role-card { gap: 6px; padding: 8px 6px; }
 .role-info small { font-size: 8px; }
}
@media (min-width: 851px) and (max-height: 820px) {
 .login-page { min-height: 100vh; min-height: 100svh; }
 .visual-panel { padding-top: 20px; padding-bottom: 14px; }
 .form-panel { padding-top: 12px; padding-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}