/* ============================================================================
   Bariks — shared login / password-reset styles
   ----------------------------------------------------------------------------
   Single source of truth for the sign-in card used by every internal console
   (WebConfig, WebAdmin, WebManagement). Served as
   _content/Bariks.Portal.UI/css/login.css and linked from each app's
   index.html. Relies on the global design tokens (tokens.css) and the shared
   component classes (.card, .btn, .form-group, .toast, .spinner) that each
   app already defines in app.css.
   ============================================================================ */

/* ─── Login / reset page shell ─────────────────────────────────────────────── */
.login-page {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.login-card {
  width: min(440px, 92vw);
  padding: var(--sp-12);
  animation: fadeIn 0.5s ease-out;
}

.login-logo {
  text-align: center;
  margin-bottom: var(--sp-8);
}
.login-logo__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-light);
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.login-logo__subtitle {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-top: var(--sp-2);
}
.login-logo__accent {
  color: var(--accent);
  font-weight: var(--fw-semibold);
}

.login-form { display: flex; flex-direction: column; gap: var(--sp-5); }
.login-submit { width: 100%; justify-content: center; height: 52px; font-size: var(--fs-base); }

/* ─── Forgot-password / helper links ───────────────────────────────────────── */
.login-linkrow {
  display: flex;
  justify-content: flex-end;
  margin-top: calc(-1 * var(--sp-2));
}
.login-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: var(--fs-xs);
  color: var(--accent);
  text-decoration: none;
}
.login-link:hover { text-decoration: underline; }
.login-link:disabled { opacity: 0.5; cursor: default; text-decoration: none; }

/* Prompt/help text inside the card (e.g. "Enter your email…", confirmations). */
.login-help {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-bottom: var(--sp-5);
  line-height: 1.5;
}

/* Success confirmation block (reset link sent / password changed). */
.login-confirm {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  text-align: center;
  padding: var(--sp-4) 0;
}
.login-confirm svg {
  width: 44px;
  height: 44px;
  color: var(--success);
}
.login-confirm__text {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}
