/* Staff host styles for its own pages: the static account pages (forms, buttons, messages, recovery codes, QR code), the
   error pages and "My security". The shell itself is styled by Platform.Ui's ic-staff.css. Works at 390 px and 1366 px
   without horizontal scrolling. */

body {
  margin: 0;
}

.ic-account {
  font-family: Barlow, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

.ic-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.ic-form h1,
.ic-host-message h1 {
  font-family: var(--ic-font-display, "Barlow Condensed", "Arial Narrow", system-ui, sans-serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 0.25rem;
}

.ic-form h2 {
  font-size: 1.05rem;
  margin: 0.5rem 0 0;
}

.ic-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ic-field label {
  font-weight: 600;
  font-size: 0.95rem;
}

.ic-field input[type="text"],
.ic-field input[type="email"],
.ic-field input[type="password"],
.ic-field input:not([type]) {
  font: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #8f8778;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  min-height: 48px;
  width: 100%;
  box-sizing: border-box;
}

.ic-field input:focus {
  outline: 3px solid rgba(83, 129, 53, 0.35);
  border-color: #538135;
}

.ic-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ic-host-button,
.ic-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  transition: background-color 0.12s ease;
  border: 1px solid #538135;
  background: #538135;
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.ic-host-button:hover,
.ic-form button[type="submit"]:hover {
  background: #456d2c;
}

.ic-host-button--secondary,
.ic-form button.ic-host-button--secondary {
  background: #fff;
  color: #3e6328;
}

.ic-host-button--danger,
.ic-form button.ic-host-button--danger {
  background: #b3261e;
  border-color: #b3261e;
}

.ic-host-link-button {
  background: none;
  border: none;
  color: #3e6328;
  text-decoration: underline;
  font: inherit;
  cursor: pointer;
  padding: 0.5rem 0;
  min-height: 44px;
}

.ic-status {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border: 1px solid;
}

.ic-status--ok {
  background: #edf5e8;
  border-color: #9cc283;
  color: #2b4a1a;
}

.ic-status--error {
  background: #fbeceb;
  border-color: #e3a19d;
  color: #8a1c15;
}

.ic-validation,
.validation-message {
  color: #b3261e;
  font-size: 0.9rem;
}

.validation-errors {
  color: #b3261e;
  padding-left: 1.2rem;
  margin: 0;
}

.ic-host-muted {
  color: var(--ic-text-2, #5a544c);
  font-size: 0.92rem;
}

.ic-host-warning {
  color: #9a5b00;
}

.ic-host-message {
  max-width: 40rem;
}

.ic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ic-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ic-text-2, #5a544c);
  font-size: 0.85rem;
}

.ic-divider::before,
.ic-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--ic-line, #ddd5c7);
}

.ic-qr {
  width: 100%;
  max-width: 14rem;
  border: 1px solid #ddd;
  padding: 0.5rem;
  background: #fff;
}

.ic-qr svg {
  width: 100%;
  height: auto;
  display: block;
}

.ic-key {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 1.05rem;
  background: #f1efe9;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  word-break: break-all;
}

.ic-recovery-codes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

.ic-passkeys {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ic-passkeys li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
}

.ic-manage-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.9rem;
  margin: 0 0 1rem;
  padding: 0 0 0.75rem;
  list-style: none;
  border-bottom: 1px solid var(--ic-line, #ddd5c7);
  font-size: 0.92rem;
}

.ic-manage-nav a {
  color: #3e6328;
}

.ic-manage-nav a.active {
  font-weight: 700;
  color: #1c1c1c;
  text-decoration: none;
}

/* "My security" inside the staff shell. */
.ic-security {
  max-width: 48rem;
}

.ic-security__facts {
  display: grid;
  grid-template-columns: minmax(8rem, max-content) 1fr;
  gap: 0.35rem 1rem;
  margin: 0 0 1rem;
}

.ic-security__facts dt {
  font-weight: 600;
}

.ic-security__facts dd {
  margin: 0;
}

.ic-security__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ic-security__pin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.ic-security__pin-input {
  max-width: 12rem;
}

@media (max-width: 599px) {
  .ic-security__facts {
    grid-template-columns: 1fr;
  }

  .ic-security__facts dd {
    margin-bottom: 0.4rem;
  }
}
