/* Hitchhiking login shell — mobile-first, no photo background */
@import url('/assets/css/hh-tokens.css');

html#loginHtml,
html#loginHtml body {
  margin: 0;
  min-height: 100%;
  background: var(--hh-bg-1) !important;
  color: var(--hh-ink);
  font-family: var(--hh-font) !important;
  -webkit-font-smoothing: antialiased;
}

/* Override global style.css body{direction:rtl} on the login page */
html#loginHtml[dir="ltr"],
html#loginHtml[dir="ltr"] body {
  direction: ltr !important;
}

html#loginHtml[dir="rtl"],
html#loginHtml[dir="rtl"] body {
  direction: rtl !important;
  font-family: "Vazirmatn", "Manrope", system-ui, sans-serif !important;
}

.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  background-color: var(--hh-bg-1) !important;
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(0, 132, 255, 0.14), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(0, 166, 156, 0.12), transparent 50%),
    linear-gradient(180deg, var(--hh-bg-1), var(--hh-bg-2)) !important;
  background-attachment: scroll !important;
  background-size: auto !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  isolation: isolate;
  position: relative;
}

.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(15, 42, 50, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 42, 50, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
}

.login-container {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  margin: auto;
  padding: clamp(1.35rem, 4vw, 2.1rem);
  border-radius: calc(var(--hh-radius) + 6px);
  background: var(--hh-surface) !important;
  border: 1px solid rgba(15, 42, 50, 0.08) !important;
  box-shadow: var(--hh-shadow) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
  display: flex;
  flex-direction: column;
}

.login-container::before {
  content: none !important;
  display: none !important;
}

.login-brand-panel,
.login-auth-panel {
  min-width: 0;
}

.login-brand-panel {
  position: relative;
  display: contents;
}

.login-auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  order: 2;
}

.login-header {
  text-align: center;
  margin-bottom: 1.35rem;
  order: 1;
}

.login-brand-home {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.login-brand-home:hover .login-title,
.login-brand-home:focus-visible .login-title {
  color: var(--hh-accent) !important;
}

.login-brand-home:focus-visible {
  outline: none;
}

.login-brand-home:focus-visible .login-brand-logo {
  box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.28), 0 8px 20px rgba(0, 132, 255, 0.22);
}

.login-brand-copy {
  order: 3;
  text-align: center;
  margin-top: 1.35rem;
}

.login-copyright {
  margin: 0.55rem 0 0;
  color: var(--hh-muted) !important;
  text-shadow: none !important;
  font-size: 0.78rem;
  line-height: 1.45;
  font-weight: 500;
  unicode-bidi: isolate;
  white-space: nowrap;
  max-width: none;
}

html#loginHtml[dir="ltr"] .login-copyright {
  direction: ltr !important;
}

html#loginHtml[dir="rtl"] .login-copyright {
  direction: rtl !important;
}

@media (max-width: 640px) {
  .login-copyright {
    white-space: normal;
    max-width: 18.5rem;
    margin-inline: auto;
  }
}

.login-brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: block;
  margin: 0 auto 0.85rem;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 132, 255, 0.22);
}

.login-title {
  margin: 0;
  font-size: clamp(1.85rem, 5.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--hh-ink) !important;
  text-shadow: none !important;
  animation: none !important;
  transform: none !important;
}

.login-subtitle {
  margin: 0.45rem 0 0;
  font-size: clamp(0.92rem, 2.6vw, 1.02rem);
  font-weight: 500;
  color: var(--hh-muted) !important;
  line-height: 1.45;
  animation: none !important;
  transform: none !important;
}

.login-form {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

html#loginHtml[dir="ltr"] .login-form {
  text-align: left !important;
}

html#loginHtml[dir="rtl"] .login-form {
  text-align: right !important;
}

.login-form.loaded {
  opacity: 1 !important;
}

.form-group {
  margin: 0;
}

.phone-input-group,
.input-group.phone-input-group {
  display: flex !important;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  align-items: stretch !important;
  direction: ltr;
}

.phone-input-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  width: 100%;
  gap: 0.45rem;
  padding: 0.35rem 0.55rem 0.35rem 0.4rem !important;
  min-height: 54px;
  border-radius: 14px !important;
  border: 1px solid var(--hh-line) !important;
  background: var(--hh-field) !important;
  box-shadow: none !important;
}

.phone-input-row .country-code-group,
.country-code-group {
  position: relative;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
}

.country-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.35rem 0.3rem;
  color: var(--hh-ink);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  font-family: inherit;
}

.country-picker-btn .country-flag {
  width: 26px;
  height: 18px;
  flex: 0 0 26px;
  object-fit: cover;
  display: block;
  border-radius: 3px;
}

.country-picker-btn .country-picker-label {
  min-width: 1.6rem;
  text-align: left;
  letter-spacing: 0.02em;
}

.country-picker-btn .country-picker-caret {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 0.7 !important;
  font-size: 0.65rem;
  line-height: 1;
  color: var(--hh-muted);
  flex: 0 0 auto;
  font-style: normal;
  font-weight: 700;
}

.country-picker-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  width: min(320px, calc(100vw - 2.5rem));
  max-height: 280px;
  overflow: hidden;
  display: none;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--hh-line);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(15, 42, 50, 0.14);
}

.country-picker-dropdown.is-open {
  display: flex;
}

.country-picker-search {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--hh-line);
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
}

.country-picker-list {
  overflow-y: auto;
  max-height: 230px;
}

.country-picker-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 0;
  background: transparent;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  text-align: left;
  color: var(--hh-ink);
  font-size: 0.9rem;
  font-family: inherit;
}

.country-picker-item:hover,
.country-picker-item.is-active {
  background: #eaf4ff;
}

.country-picker-item img {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
  flex: 0 0 24px;
}

.country-picker-item .cpi-name {
  flex: 1 1 auto;
  min-width: 0;
}

.country-picker-item .cpi-meta {
  color: var(--hh-muted);
  font-size: 0.8rem;
  font-weight: 600;
  flex: 0 0 auto;
}

.phone-input-group .phone-input,
.phone-input-row .form-input.phone-input,
#loginIdentity {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  text-align: left !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  margin: 0;
  padding: 0.55rem 0.35rem !important;
  font-size: 1rem !important;
  font-weight: 600;
  color: var(--hh-ink) !important;
  min-height: 46px;
  font-family: inherit !important;
}

.phone-input-group .phone-input::placeholder {
  color: #8a9aa3;
  opacity: 1;
  font-weight: 500;
}

.btn-send-code,
.btn-verify-code,
.btn-admin-login {
  width: 100% !important;
  min-height: 54px !important;
  margin-top: 0 !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: var(--hh-accent-grad) !important;
  background-color: var(--hh-accent) !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  font-family: inherit !important;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.btn-send-code:hover,
.btn-verify-code:hover,
.btn-admin-login:hover {
  filter: brightness(0.96);
  transform: none;
  background: var(--hh-accent-grad) !important;
}

.login-forgot-link {
  display: inline-flex;
  align-self: flex-end;
  margin: 0.15rem 0.1rem 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--hh-accent);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.login-auth-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.95rem;
  margin-bottom: 0.35rem;
  direction: ltr;
}

.login-auth-meta .login-forgot-link,
.form-group .login-auth-meta .login-forgot-link {
  display: inline-flex;
  width: auto;
  margin: 0;
  margin-inline-start: auto;
  align-self: center;
}

.login-forgot-link:hover,
.login-forgot-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.login-remember {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  margin: 0;
  width: 100%;
  color: var(--hh-muted);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  line-height: 1.3;
  flex: 0 1 auto;
  min-width: 0;
}

/* OTP step: space checkbox away from code input and verify button */
.form-group > .login-remember {
  margin-top: 1.05rem;
  margin-bottom: 1.15rem;
}

.login-auth-meta .login-remember {
  width: auto;
  flex: 0 1 auto;
}

html#loginHtml[dir="ltr"] .login-remember {
  text-align: left;
  direction: ltr;
}

html#loginHtml[dir="rtl"] .login-remember {
  text-align: right;
  direction: rtl;
}

.login-remember input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: #0084FF;
  cursor: pointer;
  flex: 0 0 auto;
}

.btn-primary,
.btn-success,
.btn-info,
.btn-warning {
  background: var(--hh-accent-grad) !important;
  background-color: var(--hh-accent) !important;
  border-color: var(--hh-accent) !important;
  color: #fff !important;
}

.form-input:not(.phone-input):not(.code-input) {
  width: 100%;
  box-sizing: border-box;
  min-height: 52px;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--hh-line) !important;
  background: var(--hh-field) !important;
  color: var(--hh-ink);
  font-size: 1rem;
  font-family: inherit;
}

.code-input-group .code-input,
#code {
  width: 100%;
  box-sizing: border-box;
  min-height: 58px;
  text-align: center;
  letter-spacing: 0.35em;
  font-size: 1.45rem;
  font-weight: 700;
  border-radius: 14px;
  border: 1px solid var(--hh-line) !important;
  background: var(--hh-field) !important;
  color: var(--hh-ink);
}

.user-info,
.admin-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--hh-line) !important;
  background: var(--hh-field) !important;
  margin-bottom: 0.85rem;
}

html#loginHtml[dir="ltr"] .user-info,
html#loginHtml[dir="ltr"] .admin-info {
  direction: ltr !important;
  justify-content: flex-start;
  text-align: left;
}

html#loginHtml[dir="rtl"] .user-info,
html#loginHtml[dir="rtl"] .admin-info {
  direction: rtl !important;
  justify-content: flex-start;
  text-align: right;
}

.user-badge,
.admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  background: rgba(0, 132, 255, 0.12);
  color: #0070db;
  font-size: 0.75rem;
  font-weight: 700;
}

.user-phone,
.admin-phone {
  color: var(--hh-ink);
  font-weight: 600;
  font-size: 0.95rem;
  word-break: break-all;
}

.user-otp-hint {
  flex: 1 1 100%;
  display: block;
  margin-top: 0.15rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--hh-muted);
  line-height: 1.45;
}

.form-actions {
  border-top: none !important;
  padding-top: 0.75rem !important;
  margin-top: 0.75rem !important;
}

.form-actions .btn-link,
.form-actions .btn-secondary {
  width: auto !important;
  min-width: 0 !important;
  flex: 1 1 140px;
  min-height: 46px;
  border-radius: 12px !important;
  border: 1px solid var(--hh-line) !important;
  background: #fff !important;
  color: var(--hh-ink) !important;
  font-weight: 600;
  font-family: inherit;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  padding-inline: 0.95rem !important;
}

.form-actions > div {
  display: flex !important;
  gap: 0.65rem !important;
  justify-content: stretch !important;
  flex-wrap: wrap !important;
}

.login-admin-actions {
  display: flex !important;
  gap: 0.75rem !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  margin-top: 0.85rem !important;
  padding-top: 0.85rem !important;
  border-top: 1px solid var(--hh-line) !important;
}

.login-admin-actions .btn {
  flex: 0 1 auto;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 44px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  padding-inline: 1rem !important;
  position: relative;
  z-index: 1;
}

.login-admin-actions .btn-link {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--hh-accent) !important;
}

#adminForm > .btn-admin-login {
  width: 100% !important;
  margin-top: 0.35rem !important;
  position: relative;
  z-index: 1;
  overflow: hidden !important;
}

#adminForm > .btn-admin-login::before,
.login-admin-actions .btn::before {
  pointer-events: none;
}

.alert {
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}

.alert-error {
  background: #fef2f2;
  color: var(--hh-danger);
  border: 1px solid #fecaca;
}

.alert-success {
  background: #f0fdf4;
  color: var(--hh-ok);
  border: 1px solid #bbf7d0;
}

.login-toast {
  position: fixed;
  top: 1.15rem;
  left: 1.15rem;
  right: auto;
  z-index: 10050;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  width: min(380px, calc(100vw - 1.75rem));
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 42, 50, 0.1);
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 42, 50, 0.16);
  color: var(--hh-ink);
  font-family: var(--hh-font);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.login-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.login-toast i {
  margin-top: 0.12rem;
  font-size: 1.05rem;
  flex: 0 0 auto;
}

.login-toast-text {
  flex: 1 1 auto;
  min-width: 0;
}

.login-toast--info {
  border-color: rgba(0, 132, 255, 0.22);
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.login-toast--info i {
  color: #0084FF;
}

.login-toast--success {
  border-color: rgba(21, 128, 61, 0.22);
  background: linear-gradient(180deg, #f3fbf6 0%, #ffffff 100%);
}

.login-toast--success i {
  color: var(--hh-ok);
}

.login-toast--error {
  border-color: rgba(194, 65, 65, 0.22);
  background: linear-gradient(180deg, #fff7f7 0%, #ffffff 100%);
}

.login-toast--error i {
  color: var(--hh-danger);
}

html#loginHtml[dir="ltr"] .login-toast {
  left: 1.15rem !important;
  right: auto !important;
  direction: ltr !important;
  text-align: left !important;
}

html#loginHtml[dir="rtl"] .login-toast {
  right: 1.15rem !important;
  left: auto !important;
  direction: rtl !important;
  text-align: right !important;
}

html#loginHtml[dir="ltr"] .login-toast-text {
  direction: ltr !important;
  text-align: left !important;
  unicode-bidi: isolate;
}

html#loginHtml[dir="rtl"] .login-toast-text {
  direction: rtl !important;
  text-align: right !important;
  unicode-bidi: isolate;
}

html#loginHtml[dir="ltr"] .alert {
  direction: ltr !important;
  text-align: left !important;
}

html#loginHtml[dir="rtl"] .alert {
  direction: rtl !important;
  text-align: right !important;
}

html#loginHtml[dir="ltr"] .form-help {
  direction: ltr !important;
  text-align: left !important;
  justify-content: flex-start;
}

html#loginHtml[dir="rtl"] .form-help {
  direction: rtl !important;
  text-align: right !important;
  justify-content: flex-start;
}

.form-help {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 0.45rem;
  color: var(--hh-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.login-footer {
  margin-top: 1.5rem;
  padding-top: 0 !important;
  border-top: none !important;
  text-align: center;
}

.login-footer p {
  margin: 0;
  color: var(--hh-muted) !important;
  text-shadow: none !important;
  font-size: 0.8rem;
  line-height: 1.5;
  unicode-bidi: isolate;
}

html#loginHtml[dir="ltr"] .login-footer,
html#loginHtml[dir="ltr"] .login-footer p {
  direction: ltr !important;
  text-align: center;
}

html#loginHtml[dir="rtl"] .login-footer,
html#loginHtml[dir="rtl"] .login-footer p {
  direction: rtl !important;
  text-align: center;
}

.login-lang-switch {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: auto;
  z-index: 30;
  display: flex;
  justify-content: flex-start;
  margin: 0;
}

html#loginHtml[dir="rtl"] .login-lang-switch {
  left: auto;
  right: 0.75rem;
  justify-content: flex-end;
}

.login-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  border-radius: 10px;
  border: 1px solid var(--hh-line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--hh-ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  direction: ltr;
  padding: 0.4rem 0.55rem 0.4rem 0.65rem;
  line-height: 1.2;
  box-shadow: 0 4px 12px rgba(15, 42, 50, 0.06);
}

.login-lang-btn:focus,
.login-lang-btn[aria-expanded="true"] {
  border-color: rgba(0, 132, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.12);
}

.login-lang-caret {
  font-size: 0.65rem;
  color: var(--hh-muted);
  line-height: 1;
}

.login-lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: auto;
  min-width: 100%;
  padding: 0.3rem;
  border-radius: 12px;
  border: 1px solid var(--hh-line);
  background: #fff;
  box-shadow: 0 14px 28px rgba(15, 42, 50, 0.14);
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  z-index: 40;
}

html#loginHtml[dir="rtl"] .login-lang-menu {
  left: auto;
  right: 0;
}

.login-lang-menu.is-open {
  display: flex;
}

.login-lang-option {
  appearance: none;
  border: 0;
  margin: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--hh-ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  padding: 0.5rem 0.7rem;
  line-height: 1.2;
  direction: ltr;
}

.login-lang-option:hover,
.login-lang-option:focus {
  background: rgba(0, 132, 255, 0.1);
  color: #0070db;
  outline: none;
}

.login-lang-option.is-active,
.login-lang-option[aria-selected="true"] {
  background: linear-gradient(180deg, #0084FF 0%, #00A69C 100%);
  color: #fff;
}

.login-lang-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hh-preferred-source-wrap {
  margin-top: 0.85rem;
}

/* Tablet */
@media (min-width: 768px) {
  .login-page {
    padding: 2.5rem;
  }

  .login-container {
    width: min(100%, 460px);
    padding: 2.25rem 2.35rem;
  }

  .phone-input-row {
    min-height: 56px;
  }

  .btn-send-code {
    min-height: 56px !important;
  }
}

/* Laptop / desktop: equal brand + auth columns */
@media (min-width: 900px) {
  .login-page {
    padding: 3rem;
  }

  .login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    width: min(96vw, 1180px);
    min-height: min(68vh, 640px);
    padding: 0;
    overflow: hidden;
  }

  .login-brand-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    order: initial;
    padding: clamp(2.5rem, 5vw, 3.75rem);
    background:
      radial-gradient(520px 280px at 20% 0%, rgba(0, 132, 255, 0.14), transparent 60%),
      radial-gradient(420px 240px at 90% 100%, rgba(0, 166, 156, 0.14), transparent 55%),
      linear-gradient(180deg, #f7fbfe 0%, #eef7f6 100%);
    border-inline-end: 1px solid rgba(15, 42, 50, 0.08);
  }

  .login-lang-switch {
    top: 1.15rem;
    left: 1.15rem;
    right: auto;
  }

  html#loginHtml[dir="rtl"] .login-lang-switch {
    left: auto;
    right: 1.15rem;
  }

  .login-auth-panel {
    order: initial;
    padding: clamp(2.5rem, 5vw, 3.75rem);
  }

  .login-header {
    order: initial;
    margin-bottom: 0;
  }

  .login-brand-copy {
    order: initial;
    margin-top: 0.45rem;
  }

  .login-brand-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    margin-bottom: 1.1rem;
  }

  .login-title {
    font-size: clamp(2rem, 2.6vw, 2.55rem);
  }

  .login-subtitle {
    font-size: 1.05rem;
    max-width: 16rem;
    margin-inline: auto;
    margin-top: 0.45rem;
  }

  .login-copyright {
    max-width: none;
    margin-inline: auto;
    margin-top: 1rem;
    white-space: nowrap;
  }

  .login-footer {
    margin-top: 1.75rem;
  }
}

/* Narrow phones */
@media (max-width: 380px) {
  .login-container {
    padding: 1.15rem;
  }

  .country-picker-btn .country-picker-label {
    font-size: 0.8rem;
  }

  .btn-send-code {
    font-size: 1rem !important;
  }
}

/* Kill legacy glass / photo / pill overrides that leak in */
.performance-mode .login-page,
.performance-mode body {
  background-attachment: scroll !important;
}

.performance-mode .login-container {
  background: var(--hh-surface) !important;
  box-shadow: var(--hh-shadow) !important;
}
