/* SACAN phone-first login page — isolated so it does not alter other screens. */
body.auth-login-page {
  color: #12345b;
  background: #fff;
  --brand: #2f78ed;
  --brand-deep: #245fad;
  --brand-soft: #eaf3ff;
}
body.auth-login-page .app-header,
body.auth-login-page .bottom-nav,
body.auth-login-page .app-drawer,
body.auth-login-page .drawer-scrim {
  display: none !important;
}
body.auth-login-page .page-shell {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}
body.auth-login-page .flash-stack {
  position: relative;
  z-index: 5;
  width: min(1120px, calc(100% - 36px));
  margin: 12px auto -4px;
}
.auth-login-scene {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(20px, 3.5vw, 34px) clamp(16px, 4.8vw, 52px) 48px;
  background:
    radial-gradient(ellipse at 83% 28%, rgba(255,255,255,.99) 0%, rgba(255,255,255,.92) 42%, rgba(255,255,255,0) 72%),
    linear-gradient(145deg, #f0f7ff 0%, #fff 48%, #fbfdff 100%);
}
.auth-login-scene::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -8px;
  left: -28px;
  width: clamp(250px, 36vw, 410px);
  height: clamp(185px, 25vw, 285px);
  pointer-events: none;
  opacity: .78;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 280' fill='none'%3E%3Cpath d='M-18 151 120 37q14-12 29 0L385 211' stroke='%23dceaff' stroke-width='23' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M22 139v113h260V139' stroke='%23e4efff' stroke-width='19' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M134 251v-51q0-28 28-28h25q28 0 28 28v51' stroke='%23e4efff' stroke-width='16'/%3E%3Crect x='72' y='140' width='25' height='25' rx='4' fill='%23dceaff'/%3E%3Crect x='105' y='140' width='25' height='25' rx='4' fill='%23dceaff'/%3E%3Crect x='72' y='173' width='25' height='25' rx='4' fill='%23dceaff'/%3E%3Crect x='105' y='173' width='25' height='25' rx='4' fill='%23dceaff'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}
.auth-login-container {
  width: 100%;
  max-width: 1190px;
  margin: 0 auto;
}
.auth-login-brandline {
  display: flex;
  justify-content: flex-start;
  min-height: 82px;
  margin-bottom: clamp(42px, 6.4vw, 74px);
}
.auth-login-brand {
  display: inline-flex;
  direction: ltr;
  align-items: center;
  gap: 11px;
  align-self: flex-start;
  color: #103d70;
}
.auth-login-logo-icon {
  flex: 0 0 auto;
  width: clamp(55px, 7vw, 78px);
  height: clamp(62px, 7.5vw, 84px);
}
.auth-login-wordmark {
  display: grid;
  gap: 1px;
  text-align: left;
  line-height: 1.05;
}
.auth-login-wordmark strong {
  color: #103d70;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(30px, 4.5vw, 49px);
  font-weight: 900;
  letter-spacing: .025em;
}
.auth-login-wordmark small {
  color: #194a7d;
  direction: rtl;
  font-size: clamp(13px, 1.8vw, 20px);
  font-weight: 800;
  white-space: nowrap;
}
.auth-login-welcome {
  margin: 0 0 clamp(30px, 4.4vw, 46px);
  text-align: right;
}
.auth-login-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 17px;
  border: 1px solid rgba(183, 239, 222, .28);
  border-radius: 999px;
  color: #10885a;
  background: linear-gradient(110deg, #e0f8f0, #e4f9f4);
  font-size: clamp(14px, 2.1vw, 21px);
  font-weight: 800;
  line-height: 1.2;
}
.auth-login-badge svg { width: 22px; height: 22px; flex: 0 0 auto; }
.auth-login-welcome h1 {
  margin: clamp(21px, 3vw, 30px) 0 9px;
  color: #12345b;
  font-size: clamp(30px, 5.2vw, 56px);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.25;
}
.auth-login-welcome p {
  margin: 0;
  color: #7387a5;
  font-size: clamp(14px, 2.65vw, 25px);
  font-weight: 600;
  line-height: 1.8;
}
.auth-login-card {
  width: 100%;
  padding: clamp(22px, 3.7vw, 38px) clamp(20px, 3.7vw, 38px) clamp(26px, 4vw, 42px);
  border: 2px solid #edf4ff;
  border-radius: clamp(17px, 2.3vw, 23px);
  background: rgba(255,255,255,.88);
  box-shadow: 0 12px 35px rgba(34, 91, 150, .045);
}
.auth-login-form {
  display: grid;
  gap: clamp(22px, 3.2vw, 34px);
  margin: 0;
}
.auth-login-field { display: grid; min-width: 0; gap: 12px; color: #14385f; }
.auth-login-field-label {
  font-size: clamp(15px, 2.2vw, 23px);
  font-weight: 800;
  line-height: 1.35;
}
.auth-phone-control {
  direction: ltr;
}
.auth-phone-control,
.auth-password-control {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: clamp(57px, 9vw, 68px);
  overflow: hidden;
  border: 2px solid #dce8fb;
  border-radius: clamp(15px, 2vw, 22px);
  background: rgba(255,255,255,.95);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.auth-phone-control:focus-within,
.auth-password-control:focus-within {
  border-color: #6ba5f6;
  box-shadow: 0 0 0 4px rgba(47, 120, 237, .09);
}
.auth-country-select {
  display: flex;
  direction: ltr;
  flex: 0 0 clamp(88px, 26%, 116px);
  align-items: center;
  justify-content: center;
  gap: clamp(5px, 1vw, 11px);
  padding: 0 clamp(8px, 1.3vw, 16px);
  border-right: 2px solid #d9e5f7;
  color: #183f6b;
}
.auth-country-flag { flex: 0 0 auto; font-size: clamp(19px, 2.7vw, 29px); line-height: 1; }
.auth-country-select select {
  width: auto;
  min-width: 0;
  max-width: 62px;
  min-height: 40px;
  padding: 2px 0;
  border: 0;
  appearance: none;
  outline: 0;
  color: #183f6b;
  background: transparent;
  direction: ltr;
  font-size: clamp(13px, 2vw, 20px);
}
.auth-country-select > svg { flex: 0 0 auto; width: 17px; height: 17px; color: #8195b0; pointer-events: none; }
.auth-phone-entry { position: relative; display: flex; flex: 1 1 auto; align-items: center; min-width: 0; direction: rtl; }
.auth-phone-entry input,
.auth-password-control input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: inherit;
  margin: 0;
  padding: 12px 53px 12px 49px;
  border: 0;
  border-radius: 0;
  outline: 0;
  color: #173b65;
  background: transparent;
  box-shadow: none;
  font-size: clamp(14px, 2.5vw, 24px);
  font-weight: 600;
  direction: rtl;
  text-align: right;
}
.auth-phone-entry input::placeholder,
.auth-password-control input::placeholder { color: #9aabc2; opacity: 1; font-weight: 500; }
.auth-field-trailing-icon {
  position: absolute;
  top: 50%;
  right: 19px;
  width: 27px;
  height: 27px;
  color: #7389a9;
  transform: translateY(-50%);
  pointer-events: none;
}
.auth-password-control input { flex: 1 1 auto; padding-left: 57px; }
.auth-password-control .auth-field-trailing-icon { right: 20px; }
.auth-password-toggle {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 13px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  color: #7a8eaa;
  background: transparent;
  transform: translateY(-50%);
}
.auth-password-toggle:hover { background: #f0f6ff; }
.auth-password-toggle svg { width: 25px; height: 25px; }
.auth-password-toggle .password-eye-closed { display: none; }
.auth-password-toggle.is-visible .password-eye-open { display: none; }
.auth-password-toggle.is-visible .password-eye-closed { display: block; }
.auth-login-forgot {
  justify-self: start;
  margin-top: -14px;
  color: #2776ea;
  font-size: clamp(13px, 2vw, 18px);
  font-weight: 800;
  text-align: right;
}
.auth-login-forgot:hover { color: #174fae; text-decoration: underline; }
.auth-login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: 100%;
  min-height: clamp(60px, 9vw, 78px);
  margin-top: 4px;
  padding: 14px 20px;
  border: 0;
  border-radius: clamp(15px, 2vw, 22px);
  color: #fff;
  background: linear-gradient(100deg, #2e73e8 0%, #2d7cf2 100%);
  box-shadow: 0 9px 22px rgba(46, 115, 232, .15);
  font-size: clamp(17px, 2.8vw, 27px);
  font-weight: 800;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.auth-login-submit:hover { filter: brightness(1.025); box-shadow: 0 12px 24px rgba(46,115,232,.22); transform: translateY(-1px); }
.auth-login-submit:active { transform: translateY(0); }
.auth-login-submit svg { width: 30px; height: 30px; flex: 0 0 auto; }
.auth-login-submit:focus-visible,
.auth-password-toggle:focus-visible { outline: 3px solid rgba(47,120,237,.35); outline-offset: 3px; }
@media (max-width: 600px) {
  .auth-login-scene { min-height: 100svh; padding: 18px 16px calc(30px + env(safe-area-inset-bottom)); }
  .auth-login-scene::before { top: 0; left: -60px; width: 245px; height: 184px; opacity: .62; }
  .auth-login-brandline { min-height: 63px; margin-bottom: 43px; }
  .auth-login-logo-icon { width: 48px; height: 56px; }
  .auth-login-wordmark strong { font-size: 29px; }
  .auth-login-wordmark small { font-size: 12px; }
  .auth-login-welcome { margin-bottom: 25px; }
  .auth-login-badge { min-height: 37px; padding: 7px 13px; font-size: 14px; }
  .auth-login-badge svg { width: 18px; height: 18px; }
  .auth-login-welcome h1 { margin-top: 18px; font-size: clamp(29px, 8vw, 37px); }
  .auth-login-welcome p { max-width: 35ch; font-size: 14px; line-height: 1.85; }
  .auth-login-card { padding: 20px 17px 23px; border-radius: 19px; }
  .auth-login-form { gap: 22px; }
  .auth-login-field { gap: 9px; }
  .auth-login-field-label { font-size: 15px; }
  .auth-phone-control, .auth-password-control { min-height: 58px; border-radius: 15px; }
  .auth-country-select { flex-basis: 92px; gap: 3px; padding-inline: 6px; }
  .auth-country-flag { font-size: 20px; }
  .auth-country-select select { max-width: 49px; font-size: 13px; }
  .auth-country-select > svg { width: 13px; height: 13px; }
  .auth-phone-entry input,
  .auth-password-control input { padding-right: 47px; padding-left: 39px; font-size: 15px; }
  .auth-field-trailing-icon { right: 13px; width: 22px; height: 22px; }
  .auth-password-control .auth-field-trailing-icon { right: 13px; }
  .auth-password-toggle { left: 5px; width: 35px; height: 35px; }
  .auth-password-toggle svg { width: 22px; height: 22px; }
  .auth-login-forgot { margin-top: -11px; font-size: 13px; }
  .auth-login-submit { min-height: 58px; border-radius: 15px; font-size: 17px; }
  .auth-login-submit svg { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-login-submit, .auth-phone-control, .auth-password-control { transition: none; }
}
