/* Sign-in — centered card with company logo */

html:has(body.login-body),
body.login-body {
  height: auto !important;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto !important;
}

body.login-body {
  background: var(--surface, #eef2f7) !important;
  color: var(--ink, #0a2a5c) !important;
  font-family: "Manrope", "Segoe UI", sans-serif !important;
}

.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

.login-shell {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.login-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.login-brand-text {
  align-items: center;
  text-align: center;
}

.login-logo-wrap--full {
  width: auto;
  max-width: min(280px, 78vw);
  height: auto;
  padding: 10px 14px;
  border-radius: 18px;
  background: #fff;
}

.login-logo--full {
  width: 100%;
  height: auto;
  max-height: 148px;
  object-fit: contain;
  display: block;
}

.login-product {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-mute, #7a8ba3);
}

.login-panel-head p {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: var(--ink-mute, #7a8ba3);
}

.login-form .field input,
.login-password-row input {
  color: var(--ink, #0a2a5c) !important;
  background: var(--surface, #f7f9fc);
  caret-color: var(--ink, #0a2a5c);
}

.login-form .field input:focus,
.login-password-row input:focus {
  border-color: var(--brand-magenta, #d4145a) !important;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 212, 20, 90), 0.12) !important;
  background: #fff !important;
}

.login-password-row {
  position: relative;
}

.login-password-row > input {
  width: 100%;
  padding-right: 46px;
}

.login-submit {
  position: relative;
}

.login-submit .login-spinner {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  display: none;
  animation: login-spin 0.75s linear infinite;
}

.login-submit.is-loading .login-submit-arrow,
.login-submit.is-loading #btnText {
  opacity: 0.35;
}

.login-submit.is-loading .login-spinner,
.login-submit.is-loading .login-spinner:not(.is-hidden) {
  display: inline-block;
}

.login-submit .login-spinner.is-hidden {
  display: none;
}

@keyframes login-spin {
  to { transform: rotate(360deg); }
}

.login-error:not(.is-hidden) {
  display: block;
}

#loginToast.toast {
  opacity: 1;
  transform: none;
  pointer-events: none;
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1200;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
}

#loginToast.toast.is-hidden {
  display: none !important;
}

/* Signed-out confirmation */

.signout-page .signout-shell {
  animation: login-rise 0.45s var(--ease, ease) both;
}

.signout-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 28px 24px 24px;
}

.signout-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ok, #0d9488);
  background:
    radial-gradient(circle at 30% 25%, rgba(13, 148, 136, 0.2), transparent 60%),
    linear-gradient(160deg, #e6f7f5, #fff 70%);
  border: 1px solid color-mix(in srgb, #0d9488 28%, #e5eaf0);
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.12);
  animation: signout-pop 0.55s var(--ease, ease) both;
}

.signout-mark svg {
  width: 30px;
  height: 30px;
}

.signout-head {
  text-align: center;
}

.signout-head h1 {
  margin: 0;
}

.signout-head p {
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}

.signout-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-decoration: none;
  box-sizing: border-box;
}

.signout-cta:hover {
  filter: brightness(1.03);
}

.signout-cta:focus-visible {
  outline: 2px solid var(--brand-magenta, #d4145a);
  outline-offset: 3px;
}

@keyframes signout-pop {
  from {
    opacity: 0;
    transform: scale(0.82);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes login-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

