/* Sign-in page in the Asmeli "bold" look (design approved 27 Nov 2026).
 *
 * Deep blue page, the organization's mark on a raised white tile, white heading on the blue,
 * a strong frosted white form card with a glowing sign-in button, "Powered by asmeli" under it.
 * Scoped to .auth-hero.login-screen; colours from tokens.css (a customer theme follows).
 */

/* The whole page, not only the panel: no white strips at the sides on phones. */
body:has(.auth-hero.login-screen),
.auth-hero.login-screen {
  background:
    radial-gradient(260px 260px at 100% 0%, rgba(110, 149, 242, 0.7), rgba(110, 149, 242, 0) 70%),
    radial-gradient(300px 300px at 0% 100%, rgba(232, 194, 106, 0.4), rgba(232, 194, 106, 0) 70%),
    linear-gradient(170deg, var(--as-primary-active, #12245c) 0%, var(--as-primary, #2341a0) 38%, #6e95f2 75%, #cfddff 100%) !important;
}

.auth-hero.login-screen .login-panel {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  gap: 22px !important;
  max-width: 980px;
  overflow: visible !important;
}

.auth-hero.login-screen .login-copy {
  background: transparent !important;
  color: #ffffff;
  justify-content: center !important;
  padding: 8px 12px !important;
}

.auth-hero.login-screen .login-copy::before {
  display: none;
}

.auth-hero.login-screen .login-copy h1,
.auth-hero.login-screen .login-copy p,
.auth-hero.login-screen .login-copy .eyebrow,
.auth-hero.login-screen .auth-brand-row strong {
  color: #ffffff !important;
}

.auth-hero.login-screen .login-copy h1 {
  font-weight: 800 !important;
}

.auth-hero.login-screen .login-copy .eyebrow {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 4px 12px;
  width: fit-content;
}

.auth-hero.login-screen .auth-brand-row img {
  background: linear-gradient(145deg, #ffffff, #c8d9fe);
  border-radius: 22px;
  box-shadow: 0 18px 36px -10px rgba(0, 0, 0, 0.5);
  height: 72px !important;
  padding: 10px;
  width: 72px !important;
}

.auth-hero.login-screen .login-panel .form-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.86)) !important;
  border: 1px solid #ffffff !important;
  border-radius: 32px !important;
  box-shadow: 0 30px 70px -18px rgba(5, 15, 50, 0.65), inset 0 1px 0 #ffffff !important;
}

.auth-hero.login-screen .form-card input {
  border-radius: 14px !important;
  min-height: 48px;
}

.auth-hero.login-screen .form-card .primary-button {
  background: linear-gradient(180deg, #3b63e0, var(--as-primary, #2341a0)) !important;
  border: 0 !important;
  border-radius: 18px !important;
  box-shadow: 0 16px 30px -10px rgba(35, 65, 160, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
  font-size: 17px;
  font-weight: 800;
  min-height: 52px;
}

.auth-hero.login-screen .org-footer {
  color: var(--as-text, #10192b) !important;
  opacity: 1 !important;
}

.auth-hero.login-screen .powered-by {
  color: var(--as-text, #10192b);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  margin: 0 auto 8px;
  opacity: 0.8;
  text-align: center;
}

/* Inputs on the sign-in card: the same rounded field everywhere, the eye inside it. */
.auth-hero.login-screen .form-card .password-field input {
  border-radius: 14px !important;
}

/* Wide screens: the page itself already carries the blue gradient. Painting it again on
   the sign-in area drew a box with visible edges inside the page. */
@media (min-width: 900px) {
  .auth-hero.login-screen {
    background: transparent !important;
  }
}

/* The error line keeps no empty space under the card until there is a message to show. */
.auth-hero.login-screen .form-card .form-message:empty {
  display: none !important;
}

/* Wide screens: no side menu on the sign-in, sign-up and check-email pages. Before signing in
   it only held «ورود» (this page) and the desktop download, which is now a link under the card. */
@media (min-width: 1024px) {
  html body:has(.auth-hero.login-screen) .app-shell,
  html body:has(.check-email-panel) .app-shell {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  /* Without the full-height side menu the page can be shorter than the screen (the app
     zooms the page to 0.8 on desktop), and the gradient repeated near the bottom. */
  html body:has(.auth-hero.login-screen),
  html body:has(.check-email-panel) {
    background-attachment: fixed !important;
    min-height: 100vh !important;
  }

  html body:has(.auth-hero.login-screen) .app-shell > .sidebar,
  html body:has(.auth-hero.login-screen) .app-shell > .sidebar-backdrop,
  html body:has(.check-email-panel) .app-shell > .sidebar,
  html body:has(.check-email-panel) .app-shell > .sidebar-backdrop {
    display: none !important;
  }
}

/* Small «دانلود برای دسکتاپ» link under the card. */
.auth-hero.login-screen .auth-download {
  margin: 4px auto 0;
  text-align: center;
}

.auth-hero.login-screen .auth-download-link {
  align-items: center;
  border-radius: 999px;
  color: var(--as-primary-strong, #1b337b);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
