.dashboard-auth [hidden] {
  display: none !important;
}

.dashboard-auth .otp-summary {
  margin: 0 0 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid #d7e4ed;
  border-radius: 14px;
  background: #f5f9fc;
  color: #26485e;
}

.dashboard-auth .otp-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
}

.dashboard-auth .otp-stat + .otp-stat {
  margin-top: 0.35rem;
}

.dashboard-auth [role="timer"] {
  display: inline-block;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.dashboard-auth .trust-browser-label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  line-height: 1.7;
  margin: 0 0 1rem;
}

.dashboard-auth .trust-browser-label input {
  flex: 0 0 auto;
  margin-top: 0.4rem;
  width: 1.1rem;
  height: 1.1rem;
}

.dashboard-auth .auth-wait-notice,
.dashboard-auth .auth-flow-notice {
  margin: 0.75rem 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid #efd8b0;
  border-radius: 12px;
  background: #fff8e9;
  color: #775016;
  font-size: 0.9rem;
  line-height: 1.7;
}

.dashboard-auth .auth-message-success {
  border-color: #b9dfca;
  background: #effaf3;
  color: #17663c;
}

.dashboard-auth .otp-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.dashboard-auth .otp-actions form {
  margin: 0;
  min-width: 0;
}

.dashboard-auth .otp-resend-btn,
.dashboard-auth .otp-restart-btn {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border: 1px solid #b9cedc;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  color: #10598c;
  background: #f1f7fb;
}

.dashboard-auth .otp-restart-btn {
  border-color: transparent;
  background: transparent;
  color: #526676;
  font-weight: 500;
}

.dashboard-auth button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.dashboard-auth .otp-resend-btn:focus-visible,
.dashboard-auth .otp-restart-btn:focus-visible {
  outline: 3px solid #469bd1;
  outline-offset: 3px;
}

.dashboard-auth .otp-resend-wait,
.dashboard-auth .otp-resend-hint {
  margin: 0.55rem 0 0;
  color: #526676;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.7;
}

.dashboard-auth #otpInput {
  text-align: center;
  letter-spacing: 0.25em;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 380px) {
  .dashboard-auth .otp-summary {
    padding: 0.7rem;
  }

  .dashboard-auth .otp-stat {
    font-size: 0.85rem;
  }
}
