/* Shopicore White-Label Login Page Stylesheet */
.for-login .page-card,
.for-forgot .page-card {
  border-radius: var(--sc-island-radius, 12px);
  box-shadow: var(--sc-island-shadow, 0 1px 2px rgba(15, 23, 42, 0.06));
  border: var(--sc-island-border, 1px solid rgba(15, 23, 42, 0.12));
}

.for-login .btn-login {
  background-color: var(--sc-color-primary, #0F766E) !important;
  color: var(--sc-color-on-primary, #FFFFFF) !important;
  border-radius: var(--sc-radius-sm, 6px);
}

.web-footer .footer-powered {
  display: none !important;
}

/* The brand logo sits in the middle of the card, above the sign-in form. */
.for-login .app-logo,
.for-signup .app-logo,
.for-forgot .app-logo,
.for-email-login .app-logo,
.for-login-with-email-link .app-logo,
.page-card .app-logo {
  display: block;
  margin-inline: auto;
}

/* Frappe's website bundle sets `a:hover { color: black }`. On the dark card that turns "Forgot password?",
   "Back to sign in" and the link buttons dark on dark. A plain link takes the strong text colour of the
   current theme on hover. A link that is a button keeps the colours of its button variant. */
.page-card a:not(.es-button):hover,
.page-card a:not(.es-button):focus-visible {
  color: var(--ink-gray-9, inherit);
}

.page-card a.es-button:hover,
.page-card a.es-button:focus-visible {
  color: var(--bt-fg, inherit);
  text-decoration: none;
}

.page-card a.es-button[data-variant="solid"]:hover,
.page-card a.es-button[data-variant="solid"]:focus-visible {
  color: var(--bt-solid-fg, inherit);
}

/* Language switcher under the sign-in card (login_language.py). */
.sc-lang-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem auto 0;
  max-width: 28rem;
}

.sc-lang-switch label {
  margin: 0;
  color: var(--ink-gray-6, var(--text-muted));
  font-size: 0.875rem;
}

.sc-lang-switch select {
  width: auto;
  min-width: 10rem;
  max-width: 100%;
  height: auto;
  line-height: 1.25;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--outline-gray-2, var(--border-color, rgba(128, 128, 128, 0.4)));
  border-radius: 0.5rem;
  background-color: var(--surface-gray-2, transparent);
  color: var(--ink-gray-8, inherit);
  font-size: 0.875rem;
}

.sc-lang-switch select:focus-visible {
  outline: 2px solid var(--outline-gray-4, currentColor);
  outline-offset: 2px;
}

/* The option list is drawn by the browser: tell it which theme the page is in. */
:root[data-theme="dark"] .sc-lang-switch select {
  color-scheme: dark;
}
