#authView.auth-page {
  display: block !important;
  position: relative !important;
  width: 100%;
  height: auto !important;
  min-height: 100dvh !important;
  padding: clamp(16px, 3vh, 32px) !important;
  overflow: visible !important;
  box-sizing: border-box !important;
  background: radial-gradient(circle at 7% 92%, #dcefea 0, transparent 34%), #f4f6f2 !important;
}

#authView .auth-layout {
  direction: ltr;
  display: grid !important;
  grid-template-columns: minmax(0, 43fr) minmax(0, 57fr) !important;
  width: min(1180px, 100%) !important;
  height: auto !important;
  min-height: calc(100dvh - clamp(32px, 6vh, 64px)) !important;
  max-height: none !important;
  margin: 0 auto !important;
  overflow: hidden;
  border: 1px solid #e0e9e5 !important;
  border-radius: 28px !important;
  background: #fff !important;
  box-shadow: 0 24px 72px rgba(13, 57, 55, .11) !important;
}

#authView > .auth-layout > .auth-aside {
  grid-column: 1;
  grid-row: 1;
  display: flex !important;
  flex-direction: column;
  justify-content: center !important;
  align-items: flex-start !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 64px clamp(34px, 5vw, 72px) !important;
  direction: rtl;
  text-align: right !important;
  background: radial-gradient(circle at 12% 12%, rgba(116, 208, 183, .23), transparent 36%), linear-gradient(155deg, #064e58, #083c4e 68%, #082f42) !important;
}

#authView .auth-aside::before,
#authView .auth-aside::after { border-color: rgba(174, 235, 222, .12) !important; }
#authView .auth-aside h1 {
  max-width: 480px !important;
  margin: 0 0 20px !important;
  color: #fff !important;
  font-size: clamp(27px, 3vw, 40px) !important;
  line-height: 1.55 !important;
  text-align: right !important;
}
#authView .auth-aside > p {
  max-width: 430px !important;
  margin: 0 !important;
  color: #cce5e2 !important;
  font-size: 14px !important;
  line-height: 2 !important;
  text-align: right !important;
}
#authView .auth-points {
  position: static !important;
  display: grid !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 34px 0 0 !important;
}
#authView .auth-points > div {
  width: fit-content;
  padding: 8px 12px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 10px !important;
  color: #e8f4f1 !important;
  background: rgba(255,255,255,.07) !important;
  font-size: 12px !important;
}
#authView .auth-points svg { color: #91e0bb !important; }

#authView > .auth-brand {
  position: absolute !important;
  z-index: 3;
  top: clamp(42px, 6vh, 68px) !important;
  left: calc(43% + 28.5%) !important;
  right: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 200px !important;
  height: auto !important;
  margin: 0 !important;
  gap: 0 !important;
  transform: translateX(-50%) !important;
}
#authView > .auth-brand .auth-logo {
  width: 190px !important;
  height: 60px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  object-fit: contain !important;
}
#authView > .auth-brand .auth-desktop-welcome { display: none !important; }

#authView > .auth-layout > .auth-card-wrap {
  grid-column: 2;
  grid-row: 1;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 126px clamp(34px, 5vw, 76px) 46px !important;
  direction: rtl;
  background: #fff !important;
}
#authView .auth-form-stack { width: min(100%, 490px) !important; max-width: none !important; margin: auto !important; }
#authView .auth-form-panel {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#authView .auth-form-panel[hidden] { display: none !important; }
#authView #registerForm:not([hidden]) { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
#authView #registerForm > :not(label) { grid-column: 1 / -1; }
#authView #registerForm > label:nth-of-type(3) { grid-column: auto; }
#authView #registerForm .required-mark { color: #ce3144; }
#authView #registerForm label > select {
  display: block; width: 100%; height: 48px; margin-top: 8px; padding: 0 14px;
  border: 1px solid #d8e4e0; border-radius: 10px; background: #fbfdfc;
  color: #173b43; font: inherit; box-sizing: border-box;
}
#authView #registerForm .preview-field { color: #29464a; font-size: 12px; font-weight: 700; }
#authView #registerForm .preview-captcha { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
#authView #registerForm .preview-captcha span { padding: 14px; background: #f4f7f5; border-radius: 10px; }
#authView #registerForm .preview-captcha input { width: 110px; min-width: 0; height: 44px; border: 1px solid #d8e4e0; border-radius: 10px; }
#authView #registerForm select, #authView #registerForm select option { direction: rtl; text-align: right; }
#authView #registerForm .preview-captcha span { direction: ltr; letter-spacing: 4px; user-select: none; font-size: 17px; font-weight: 800; }
#authView #registerForm .register-terms { display: flex !important; align-items: center; gap: 5px; grid-column: 1 / -1; }
#authView #registerForm .register-terms input[type="checkbox"] { display: inline-block !important; flex: 0 0 13px; width: 13px !important; height: 13px !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; accent-color: #087368; }
#authView #registerForm .primary-button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
#authView #registerForm .account-type-choice {
  display: flex !important;
  gap: 8px !important;
  margin: 0 0 18px !important;
  padding: 5px !important;
  border: 1px solid #e3ebe8 !important;
  border-radius: 12px !important;
  background: #f4f7f5 !important;
}
#authView #registerForm .account-type-choice label {
  display: flex !important;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0 !important;
  padding: 9px 7px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  cursor: pointer;
}
#authView #registerForm .account-type-choice label:has(input:checked) {
  color: #075b60 !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(12, 66, 64, .09) !important;
}
#authView .auth-form-panel h2 {
  margin: 0 0 7px !important;
  color: #133d45 !important;
  font-size: clamp(25px, 2.4vw, 31px) !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
}
#authView .auth-form-panel > p:not(.auth-switch):not(.message):not(.auth-mobile-welcome) {
  display: block !important;
  margin: 0 0 24px !important;
  color: #61777b !important;
  font-size: 13px !important;
  line-height: 1.8 !important;
}
#authView #loginForm > .auth-mobile-welcome { display: none !important; }
#authView .auth-methods {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 5px !important;
  margin: 0 0 23px !important;
  padding: 5px !important;
  border: 1px solid #e3ebe8 !important;
  border-radius: 12px !important;
  background: #f4f7f5 !important;
}
#authView .auth-method { min-height: 39px !important; color: #60767b !important; border-radius: 8px !important; }
#authView .auth-method.active { color: #075b60 !important; box-shadow: 0 2px 8px rgba(12, 66, 64, .09) !important; }
#authView .auth-form-panel label {
  display: block !important;
  min-width: 0;
  margin: 0 0 16px !important;
  color: #29464a !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}
#authView #loginForm label[hidden],
#authView #loginForm button[hidden] { display: none !important; }
#authView .auth-form-panel label > input:not([type="radio"]) {
  display: block;
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  margin: 8px 0 0 !important;
  padding: 0 14px !important;
  border: 1px solid #d8e4e0 !important;
  border-radius: 10px !important;
  color: #173b43 !important;
  background: #fbfdfc !important;
  box-shadow: none !important;
  box-sizing: border-box;
}
#authView #registerFullName { direction: rtl !important; text-align: right !important; }
#authView .auth-form-panel label > input:not([type="radio"]):focus {
  border-color: #0c8580 !important;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(12, 133, 128, .12) !important;
}
#authView .auth-form-panel input::placeholder { color: #93a4a5 !important; opacity: 1 !important; }
#authView .auth-form-panel .primary-button {
  width: 100% !important;
  min-height: 50px !important;
  margin: 5px 0 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: #fff !important;
  background: #087368 !important;
  box-shadow: 0 8px 18px rgba(8, 115, 104, .18) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}
#authView .auth-form-panel .primary-button:hover { background: #075d58 !important; transform: translateY(-1px); }
#authView #smsSendAgain {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  margin: 0 0 4px;
  padding: 10px 16px;
  border: 1px solid #b9d8d1;
  border-radius: 10px;
  color: #075d58;
  background: #edf7f4;
  box-shadow: 0 3px 10px rgba(8, 115, 104, .08);
  font-size: 13px;
  font-weight: 800;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .2s;
}
#authView #smsSendAgain svg { width: 17px; height: 17px; flex: none; }
#authView #smsSendAgain:hover {
  border-color: #80b8ac;
  background: #dff1ec;
  box-shadow: 0 6px 15px rgba(8, 115, 104, .13);
  transform: translateY(-1px);
}
#authView #smsSendAgain:focus-visible {
  outline: 3px solid rgba(8, 115, 104, .35);
  outline-offset: 2px;
}
#authView #smsSendAgain:active { transform: translateY(0); }
#authView #smsSendAgain:disabled { opacity: .55; cursor: wait; transform: none; }
#authView .auth-switch,
#authView #loginForm > .auth-switch {
  display: block !important;
  width: 100% !important;
  margin: 24px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #687e80 !important;
  background: transparent !important;
  text-align: center !important;
  font-size: 13px !important;
}
#authView .auth-switch a { color: #087368 !important; font-weight: 800 !important; text-decoration: none !important; }
#authView .auth-switch a:hover { text-decoration: underline !important; }
#authView .message:empty { display: none !important; }
#authView .message:not(:empty) { grid-column: 1 / -1; margin: 12px 0 0 !important; }
body:has(#authView:not(.hidden)) .dashboard-mobile-nav { display: none !important; }

@media (min-width: 781px) and (max-height: 750px) {
  #authView > .auth-brand { top: 28px !important; }
  #authView > .auth-layout > .auth-card-wrap { padding-top: 100px !important; padding-bottom: 24px !important; }
  #authView > .auth-layout > .auth-aside { padding-top: 38px !important; padding-bottom: 38px !important; }
  #authView .auth-points { margin-top: 20px !important; }
  #authView .auth-form-panel > p:not(.auth-switch):not(.message):not(.auth-mobile-welcome) { margin-bottom: 16px !important; }
  #authView .auth-methods { margin-bottom: 14px !important; }
  #authView .auth-form-panel label { margin-bottom: 10px !important; }
  #authView .auth-switch, #authView #loginForm > .auth-switch { margin-top: 16px !important; }
}

@media (max-width: 780px) {
  #authView.auth-page { display: flex !important; flex-direction: column; align-items: center; min-height: 0 !important; padding: 18px 14px 0 !important; }
  #authView > .auth-brand {
    position: static !important;
    align-self: center !important;
    width: auto !important;
    margin: 0 auto 14px !important;
    transform: none !important;
  }
  #authView > .auth-brand .auth-logo { width: 182px !important; height: 57px !important; }
  #authView .auth-layout {
    display: block !important;
    width: min(520px, 100%) !important;
    height: auto !important;
    min-height: 0 !important;
    border-radius: 20px !important;
  }
  #authView > .auth-layout > .auth-aside { display: none !important; }
  #authView > .auth-layout > .auth-card-wrap { display: block !important; height: auto !important; min-height: 0 !important; padding: 30px clamp(20px, 5vw, 34px) 28px !important; }
  #authView .auth-form-stack { width: 100% !important; }
  #authView #registerForm:not([hidden]) { grid-template-columns: 1fr; }
  #authView #registerForm > label { grid-column: 1 / -1; }
  #authView .auth-form-panel h2 { text-align: right !important; font-size: 25px !important; }
  #authView #loginForm > .auth-mobile-welcome { display: none !important; }
  #authView .auth-form-panel > p:not(.auth-switch):not(.message):not(.auth-mobile-welcome) { margin-bottom: 18px !important; }
  #authView .auth-methods { margin-bottom: 18px !important; }
  #authView .auth-form-panel label { margin-bottom: 14px !important; }
}

#authView #loginForm > p:not(.auth-mobile-welcome):not(.auth-switch):not(.message) {
  display: block !important;
  margin: 0 0 24px !important;
  color: #61777b !important;
}
#authView #loginForm > .auth-switch {
  margin: 24px 0 0 !important;
  color: #687e80 !important;
  font-weight: 400 !important;
}
#authView #loginForm > .auth-switch a { color: #087368 !important; font-weight: 800 !important; }
#authView #registerForm .account-type-choice input[type="radio"] {
  flex: none;
  width: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  accent-color: #087368 !important;
}
@media (max-width: 780px) {
  #authView #loginForm > p:not(.auth-mobile-welcome):not(.auth-switch):not(.message) {
    margin-bottom: 18px !important;
  }
}

#authView #loginForm > p.auth-switch { margin-top: 24px !important; margin-bottom: 0 !important; }

@media (min-width: 781px) {
  #authView > .auth-layout > .auth-aside { align-items: center !important; }
  #authView .auth-aside h1,
  #authView .auth-aside > p { text-align: center !important; }
  #authView .auth-points { justify-items: center !important; }
  #authView .auth-points > div { justify-content: center !important; text-align: center !important; }
  #authView:has(#registerForm:not([hidden])) > .auth-layout > .auth-card-wrap {
    align-items: flex-start !important;
    padding-top: calc(clamp(42px, 6vh, 68px) + 65px - clamp(16px, 3vh, 32px)) !important;
  }
  #authView:has(#registerForm:not([hidden])) .auth-form-stack { margin: 0 auto !important; }
}
@media (max-width: 780px) {
  #authView:has(#registerForm:not([hidden])) > .auth-brand { margin-bottom: 0 !important; }
  #authView:has(#registerForm:not([hidden])) > .auth-layout > .auth-card-wrap { padding-top: 4px !important; }
}

#authView.auth-page.hidden { display: none !important; }

/* Desktop login only: wider panels, unchanged mobile and registration. */
@media (min-width: 781px) {
  #authView:has(#loginForm:not([hidden])) .auth-layout { width: min(1280px, 100%) !important; }
  #authView:has(#loginForm:not([hidden])) .auth-form-stack { width: min(100%, 560px) !important; }
  #authView:has(#loginForm:not([hidden])) > .auth-layout > .auth-card-wrap {
    padding-left: clamp(28px, 4vw, 56px) !important;
    padding-right: clamp(28px, 4vw, 56px) !important;
  }
}

/* Keep only desktop login inside the viewport; short screens scroll within panels. */
@media (min-width: 781px) {
  #authView.auth-page:has(#loginForm:not([hidden])) {
    height: 100dvh !important;
    min-height: 0 !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
  }
  #authView:has(#loginForm:not([hidden])) > .auth-layout {
    height: calc(100dvh - 2 * clamp(16px, 3vh, 32px)) !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 2 * clamp(16px, 3vh, 32px)) !important;
    box-sizing: border-box;
    grid-template-rows: minmax(0, 1fr);
  }
  #authView:has(#loginForm:not([hidden])) > .auth-layout > .auth-card-wrap,
  #authView:has(#loginForm:not([hidden])) > .auth-layout > .auth-aside {
    box-sizing: border-box;
    overflow-y: auto;
  }
}

/* Login only: trim outer whitespace without changing form controls. */
@media (min-width: 781px) {
  #authView:has(#loginForm:not([hidden])) > .auth-layout > .auth-card-wrap {
    padding-top: 100px !important;
    padding-bottom: 16px !important;
  }
}
@media (max-width: 780px) {
  #authView.auth-page:has(#loginForm:not([hidden])) {
    padding-top: 10px !important;
  }
  #authView:has(#loginForm:not([hidden])) > .auth-layout > .auth-card-wrap {
    padding-top: 20px !important;
    padding-bottom: 16px !important;
  }
}

/* Keep login feedback visible despite helper-copy hiding rules. */
#authView #loginForm > #message.message:not(:empty) {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #b42318 !important;
  font-weight: 700 !important;
  line-height: 1.7;
}


/* Desktop login: clip decorative rings, not the information content. */
@media (min-width: 781px) {
  #authView:has(#loginForm:not([hidden])) > .auth-layout > .auth-aside {
    overflow: hidden;
  }
}
@media (min-width: 781px) and (max-height: 700px) {
  #authView:has(#loginForm:not([hidden])) > .auth-layout > .auth-card-wrap {
    padding-top: 84px !important;
    padding-bottom: 12px !important;
  }
  #authView:has(#loginForm:not([hidden])) #loginForm .auth-methods {
    margin-bottom: 12px !important;
  }
  #authView:has(#loginForm:not([hidden])) #loginForm label {
    margin-bottom: 8px !important;
  }
  #authView:has(#loginForm:not([hidden])) #loginForm > .auth-switch {
    margin-top: 12px !important;
  }
}

