/* =========================================================
   BANKID LOGIN (SE /user/login)
   Renders inside .auth-card on page--auth; reuses the auth
   design tokens defined in ominimo/css/auth-pages.css.
========================================================= */

.bankid-app {
  width: 100%;
}

.bankid-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 8px 0;
}

/* --- Placeholder logotype ------------------------------- */
.bankid-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.bankid-logo__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #193e4f;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  font-style: italic;
}

.bankid-logo__text {
  font-size: 24px;
  font-weight: 800;
  color: #193e4f;
}

.bankid-panel__title {
  margin: 0;
  font-size: 16px;
  color: var(--auth-muted, #666);
}

/* --- Method chooser -------------------------------------- */
.bankid-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 20px;
  border: 1px solid var(--auth-border, #e6e6e6);
  border-radius: 10px;
  background: #fafafa;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  color: var(--auth-text, #111);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.bankid-option:hover,
.bankid-option:focus-visible {
  border-color: var(--auth-primary, #5b57ff);
  background: #fff;
}

.bankid-option__icon {
  display: inline-flex;
  color: var(--auth-text, #111);
}

.bankid-option__label {
  flex: 1;
  text-align: left;
}

.bankid-option__arrow {
  display: inline-flex;
  color: var(--auth-text, #111);
}

/* --- QR view ---------------------------------------------- */
.bankid-steps {
  margin: 0;
  padding-left: 20px;
  align-self: flex-start;
  color: var(--auth-muted, #666);
  font-size: 15px;
  line-height: 1.6;
}

.bankid-qr {
  display: grid;
  place-items: center;
  width: 228px;
  height: 228px;
  border: 1px solid var(--auth-border, #e6e6e6);
  border-radius: 10px;
  background: #fff;
  padding: 16px;
}

/* --- Status, buttons, error ------------------------------- */
.bankid-status {
  margin: 0;
  text-align: center;
  font-size: 15px;
  color: var(--auth-text, #111);
  min-height: 1.5em;
}

.bankid-primary {
  width: 100%;
  padding: 14px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--auth-primary, #5b57ff);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.bankid-primary:hover,
.bankid-primary:focus-visible {
  background: var(--auth-primary-press, #4a46e6);
}

.bankid-cancel {
  border: 0;
  background: none;
  padding: 6px 12px;
  font: inherit;
  font-size: 15px;
  color: var(--auth-muted, #666);
  text-decoration: underline;
  cursor: pointer;
}

.bankid-cancel:hover {
  color: var(--auth-text, #111);
}

.bankid-error {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fdecec;
  border: 1px solid #f5c2c2;
  color: #8a1f1f;
  font-size: 15px;
  text-align: center;
}

/* --- Spinner ----------------------------------------------- */
.bankid-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid var(--auth-border, #e6e6e6);
  border-top-color: var(--auth-primary, #5b57ff);
  animation: bankid-spin 0.9s linear infinite;
}

@keyframes bankid-spin {
  to {
    transform: rotate(360deg);
  }
}