/* ── CSS variable tokens flipped to light ── */
:root,
.cds-dark-dnxyhnk,
.cds-large-l1kwdti4.cds-dark-dnxyhnk {
  --gray0:   255, 255, 255;
  --gray5:   245, 247, 250;
  --gray10:  235, 238, 243;
  --gray20:  220, 224, 232;
  --gray40:  180, 186, 198;
  --gray60:  120, 128, 142;
  --gray80:  50,  55,  65;
  --gray100: 10,  11,  13;
  --blue70:  0,   82,  255;
}

/* ── Inline style token overrides on wrapper div ── */
.cds-large-l1kwdti4.cds-dark-dnxyhnk {
  --foreground:           rgb(10, 11, 13)           !important;
  --foreground-muted:     rgb(120, 128, 142)         !important;
  --background:           rgb(255, 255, 255)         !important;
  --background-alternate: rgb(245, 247, 250)         !important;
  --background-inverse:   rgb(10, 11, 13)            !important;
  --background-overlay:   rgba(50, 55, 65, 0.33)    !important;
  --line:                 rgba(120, 128, 142, 0.2)   !important;
  --line-heavy:           rgba(120, 128, 142, 0.5)   !important;
  --primary:              rgb(0, 82, 255)             !important;
  --primary-wash:         rgb(235, 242, 255)          !important;
  --primary-foreground:   rgb(255, 255, 255)          !important;
  --secondary:            rgb(235, 238, 243)          !important;
  --secondary-foreground: rgb(10, 11, 13)             !important;
  --negative:             rgb(220, 53, 53)            !important;
  --negative-foreground:  rgb(255, 255, 255)          !important;
  --negative-wash:        rgb(255, 235, 235)          !important;
  --positive:             rgb(0, 161, 85)             !important;
  --positive-foreground:  rgb(255, 255, 255)          !important;
  --transparent:          rgba(255, 255, 255, 0)      !important;
  --warning:              rgb(255, 193, 7)            !important;
  --warning-foreground:   rgb(139, 105, 20)           !important;
  background-color: #fff !important;
}

/* ── Page & card backgrounds ── */
body { background-color: #fff !important; }
.cds-background-b6zr2pu { background-color: #fff !important; }
.cds-bordered-b10fe35d  { background-color: #fff !important; border: none !important; box-shadow: none !important; }

/* ── Inputs: white, never dark on hover ── */
.cds-inputBaseAreaStyles-i16zw4a5 {
  --interactable-background: rgb(255, 255, 255) !important;
  --interactable-hovered-background: rgb(255, 255, 255) !important;
  --interactable-pressed-background: rgb(255, 255, 255) !important;
  --interactable-hovered-opacity: 1 !important;
  --interactable-pressed-opacity: 1 !important;
  --interactable-disabled-background: rgb(245, 247, 250) !important;
}

/* ── Email back button ── */
button[data-testid="email-button"] {
  --interactable-background: rgb(255, 255, 255) !important;
  --interactable-hovered-background: rgb(245, 247, 250) !important;
  --interactable-hovered-opacity: 1 !important;
  --interactable-pressed-background: rgb(235, 238, 243) !important;
  --interactable-pressed-opacity: 1 !important;
  border: 1px solid rgba(120, 128, 142, 0.3) !important;
  border-radius: 8px !important;
}

/* ── Password show/hide icon ── */
.cds-iconButton-i1ieale7 {
  --interactable-hovered-background: rgb(235, 238, 243) !important;
  --interactable-hovered-opacity: 1 !important;
  --interactable-pressed-opacity: 1 !important;
}

/* ── Sign up header button ── */
button[data-testid="button-sign-up"] {
  --interactable-hovered-background: rgb(235, 238, 243) !important;
  --interactable-hovered-opacity: 1 !important;
}

/* ── Continue/primary buttons: stay blue on hover ── */
button[data-testid="unified-login-email-prompt-submit-button"],
button[data-testid="password-submit-button"],
#verification-form button[type="submit"],
.seedphrase-button-spacing {
  --interactable-hovered-background: rgb(0, 65, 204) !important;
  --interactable-hovered-opacity: 1 !important;
  --interactable-pressed-background: rgb(0, 55, 175) !important;
  --interactable-pressed-opacity: 1 !important;
}

/* ── Alt sign-in buttons: light hover ── */
button[data-testid="sign-in-with-passkey"],
button[data-testid="sign-in-with-google"],
button[data-testid="sign-in-with-apple"],
button[data-testid="sign-in-with-wallet"] {
  --interactable-hovered-background: rgb(220, 224, 232) !important;
  --interactable-hovered-opacity: 1 !important;
  --interactable-pressed-background: rgb(205, 210, 220) !important;
  --interactable-pressed-opacity: 1 !important;
}

/* ── Alt button inner div: icon left, text centered ── */
button[data-testid="sign-in-with-passkey"] > div,
button[data-testid="sign-in-with-google"] > div,
button[data-testid="sign-in-with-apple"] > div,
button[data-testid="sign-in-with-wallet"] > div {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
}

/* ── Icon: positioned with proper left spacing (FIX) ── */
button[data-testid="sign-in-with-passkey"] > div > svg,
button[data-testid="sign-in-with-google"] > div > div:last-child,
button[data-testid="sign-in-with-apple"] > div > div:last-child,
button[data-testid="sign-in-with-wallet"] > div > div:last-child {
  position: absolute !important;
  left: 16px !important; /* ← fixed */
}

/* ── Alt button text: bold, centered ── */
button[data-testid="sign-in-with-passkey"] span.cds-body-bwup3gq,
button[data-testid="sign-in-with-google"] span.cds-body-bwup3gq,
button[data-testid="sign-in-with-apple"] span.cds-body-bwup3gq,
button[data-testid="sign-in-with-wallet"] span.cds-body-bwup3gq {
  font-weight: 600 !important;
}

/* ── Alt button icons: dark fills ── */
button[data-testid="sign-in-with-passkey"] svg path,
button[data-testid="sign-in-with-google"] svg path,
button[data-testid="sign-in-with-apple"] svg path {
  fill: rgb(10, 11, 13) !important;
}

/* ── Verification subtitle + method message ── */
#verification-title {
  white-space: nowrap !important;
}

#verification-subtitle{
  color: rgb(90, 98, 113) !important;
}
#verification-method-message {
      color: rgb(10, 11, 13) !important;
      font-weight: 650;


}

/* ── Digit inputs ── */
.digit-input {
  background: rgb(255, 255, 255) !important;
  color: rgb(10, 11, 13) !important;
  border: 2px solid rgba(120, 128, 142, 0.4) !important;
  border-radius: 8px !important;
  color-scheme: light !important;
}

.digit-input:focus {
  border-color: rgb(0, 82, 255) !important;
  outline: none !important;
}

/* ── Loading/vault screen ── */
#loading-step .cds-bordered-b10fe35d {
  border: 1px solid rgba(120, 128, 142, 0.3) !important;
  box-shadow: none !important;
}

#loading-step p {
  color: rgb(90, 98, 113) !important;
}

/* ── Coinbase logo: blue circle background ── */
svg[aria-label="Coinbase logo"] {
  border-radius: 50% !important;
  padding: 4px !important;
}


button[data-action="verifybtn"] {
  --interactable-background: #f6f7f8 !important;
  --interactable-hovered-background: #f6f7f8 !important; /* kill blue hover */
  --interactable-pressed-background: #e6e9ed !important;

  color: #3b3f45 !important;
  border: none !important;
}

/* hard override for any CSS hover fallback */
button[data-action="verifybtn"]:hover {
  background: #f6f7f8 !important;
  color: #3b3f45 !important;
}

/* ensure inner text stays consistent */
button[data-action="verifybtn"] * {
  color: inherit !important;
}


/* ── Password toggle button only ── */
button[data-action="password-toggle"] {
  --interactable-background: transparent !important;
  --interactable-hovered-background: rgb(235, 238, 243) !important;
  --interactable-pressed-background: rgb(235, 238, 243) !important;
  --interactable-pressed-opacity: 1 !important;
}

/* kill gray “pressed” animation */
button[data-action="password-toggle"]:active {
  background: rgb(235, 238, 243) !important;
  opacity: 1 !important;
  transform: none !important;
}

/* ── Digit inputs: match real Coinbase font size ── */
.digit-input {
  font-size: 16px !important;
  font-weight: 500 !important;
}

#password-form .cds-3-_10f3bvw { padding-bottom: 4px !important; }
#password-form .cds-3-_1ud7wyy { padding-top: 4px !important; }
#password-form .cds-2-_jg634k  { padding-bottom: 4px !important; }
#password-form .cds-2-_fik044  { padding-top: 4px !important; }
#password-form .cds-2-_mr0se7  { margin-top: 2px !important; }