/*
 * Identity engine — component styles.
 *
 * Import in consuming app layouts:
 *
 *   stylesheet_link_tag "identity/components"
 */

/* ============================================================
   Identity::GoogleSignIn — Google OAuth button with overlay.
   ============================================================ */

.identity-google-sign-in {
  position: relative;
}

.identity-google-sign-in__overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  cursor: pointer;
}

.identity-google-sign-in__overlay iframe {
  width: 100% !important;
  height: 100% !important;
}

/* ============================================================
   Identity::OtpInput — six-digit code input with countdown.
   ============================================================ */

.identity-otp-input {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-24);
  align-items: center;
}

.identity-otp-input__grid {
  display: flex;
  gap: var(--spacing-4);
  justify-content: space-between;
}

.identity-otp-input__digit {
  width: 68px;
  height: 62px;
  background-color: var(--color-background-secondary);
  border: 1px solid var(--color-border-default);
  border-radius: var(--border-radius-sm);
  text-align: center;
  font-size: var(--font-size-24);
  font-family: ui-monospace, monospace;
  color: var(--color-text-neutral-primary);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.identity-otp-input__digit:focus {
  outline: none;
  border-color: var(--color-brand-secondary);
  box-shadow: 0 0 0 3px var(--color-border-accent);
}

.identity-otp-input__timer {
  font-weight: var(--font-weight-semibold);
  color: var(--color-brand-secondary);
}
