/**
 * PhotoXED Phone Auth UI — Beautiful, iOS-native feel
 * Used inside Message Sheets for send + verify flow.
 * Zero inline styles.
 */

.px-auth-phone {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.px-auth-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 17px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  color: var(--tx);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.px-auth-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.15);
}

.px-auth-input::placeholder {
  color: var(--tx3);
}

.px-otp-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: var(--sp-3) 0;
}

.px-otp-digit {
  width: 46px;
  height: 54px;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  color: var(--tx);
  transition: all var(--dur-fast) var(--ease);
}

.px-otp-digit:focus {
  border-color: var(--accent);
  background: rgba(167, 139, 250, 0.08);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
  outline: none;
}

.px-auth-hint {
  font-size: 13px;
  color: var(--tx3);
  text-align: center;
  line-height: 1.4;
}

.px-auth-dev-otp {
  font-size: 13px;
  color: #ffd93d;
  text-align: center;
  line-height: 1.4;
}

.px-auth-error {
  color: var(--danger);
  font-size: 14px;
  text-align: center;
  min-height: 20px;
}

.px-resend {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  background: none;
  border: none;
  padding: 8px;
  margin-top: 4px;
}

.px-resend[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

.px-auth-phone .px-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Simple button used in sheets */
.px-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  background: var(--accent);
  color: white;
  width: 100%;
  margin-top: var(--sp-3);
  transition: transform 80ms linear, opacity var(--dur-fast) var(--ease);
}
.px-btn:active { transform: scale(0.985); opacity: 0.9; }