/* ── GCE My Account OTP Login Styles ────────────────────────── */
/* Scoped to .gce-myaccount-otp-wrap so it doesn't conflict with WC/theme styles */

.gce-myaccount-otp-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0 auto 32px;
  max-width: 480px;
}

.gce-myaccount-otp-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(0,0,0,.10);
  padding: 36px 40px 28px;
  border: 1px solid #e2e8f0;
}

/* Header */
.gce-myaccount-header { text-align: center; margin-bottom: 28px; }
.gce-myaccount-icon   { font-size: 2.6rem; margin-bottom: 10px; }
.gce-myaccount-title  {
  font-size: 1.45rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 6px;
}
.gce-myaccount-sub {
  color: #64748b;
  font-size: .88rem;
  margin: 0;
}

/* Tabs */
.gce-otp-tabs {
  display: flex;
  gap: 8px;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
}
.gce-otp-tab {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-size: .87rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all .18s;
}
.gce-otp-tab.active {
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 1px 6px rgba(0,0,0,.10);
}
.gce-otp-tab:hover:not(.active) { color: #1e293b; }

/* Panels */
.gce-otp-panel          { display: none; }
.gce-otp-panel.active   { display: block; }
.gce-otp-hidden         { display: none !important; }

/* Fields */
.gce-otp-field {
  margin-bottom: 16px;
}
.gce-otp-field label {
  display: block;
  font-size: .83rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 6px;
  text-transform: none;
}
.gce-otp-field input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 9px;
  font-size: .95rem;
  color: #1e293b;
  background: #fff;
  transition: border-color .18s, box-shadow .18s;
  outline: none;
  box-sizing: border-box;
}
.gce-otp-field input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

/* Phone prefix row */
.gce-otp-input-wrap {
  display: flex;
  align-items: stretch;
}
.gce-otp-prefix {
  display: flex;
  align-items: center;
  padding: 11px 13px;
  background: #f8fafc;
  border: 1.5px solid #d1d5db;
  border-right: none;
  border-radius: 9px 0 0 9px;
  font-size: .92rem;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
}
.gce-otp-input-wrap input {
  border-radius: 0 9px 9px 0;
}

/* OTP code input */
.gce-otp-code-wrap { position: relative; }
.gce-otp-code-wrap input {
  font-size: 1.4rem;
  letter-spacing: 6px;
  text-align: center;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  padding: 13px;
}
.gce-otp-hint {
  display: block;
  font-size: .75rem;
  color: #94a3b8;
  text-align: center;
  margin-top: 6px;
}

/* Button */
.gce-otp-btn {
  display: block;
  width: 100%;
  padding: 13px;
  margin-top: 6px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 9px;
  font-size: .97rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s, transform .1s, opacity .18s;
  letter-spacing: .01em;
}
.gce-otp-btn:hover   { background: #1d4ed8; }
.gce-otp-btn:active  { transform: scale(.98); }
.gce-otp-btn:disabled { opacity: .55; cursor: not-allowed; }

/* Status message */
.gce-otp-msg {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: .88rem;
  line-height: 1.5;
}
.gce-otp-msg.success { background: #dcfce7; color: #166534; border-left: 3px solid #16a34a; }
.gce-otp-msg.error   { background: #fee2e2; color: #991b1b; border-left: 3px solid #dc2626; }
.gce-otp-msg.info    { background: #dbeafe; color: #1e40af; border-left: 3px solid #2563eb; }

/* Resend row */
.gce-otp-resend {
  text-align: center;
  margin-top: 10px;
  font-size: .8rem;
  color: #94a3b8;
}
.gce-otp-resend button {
  background: none;
  border: none;
  color: #2563eb;
  font-size: .8rem;
  cursor: pointer;
  font-weight: 600;
  padding: 0;
  text-decoration: underline;
}

/* Footer */
.gce-otp-footer {
  text-align: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  font-size: .76rem;
  color: #94a3b8;
}

/* Responsive */
@media (max-width: 520px) {
  .gce-myaccount-otp-card { padding: 24px 18px 20px; }
  .gce-myaccount-title     { font-size: 1.2rem; }
  .gce-otp-code-wrap input { letter-spacing: 4px; font-size: 1.2rem; }
}
