/* One-time code digit row — GitHub issue #101. Partial: app/views/shared/components/_input_otp.html.erb */
@layer components {
  .input-otp {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }

  .input-otp__cells {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--space-2);
    justify-content: flex-start;
  }

  .input-otp__cell {
    width: 2.75rem;
    min-width: 0;
    padding: var(--space-3) var(--space-2);
    font-size: var(--text-lg);
    font-family: inherit;
    font-variant-numeric: tabular-nums;
    text-align: center;
    line-height: 1.25;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: border-color var(--duration-fast) var(--ease-default), box-shadow var(--duration-fast) var(--ease-default);
  }

  .input-otp__cell:hover {
    border-color: var(--color-text-muted);
  }

  .input-otp__cell:focus {
    outline: none;
    border-color: var(--color-border-focus);
    box-shadow: var(--shadow-focus-input);
  }
}
