/* Sign-in page: "Sign in with WhatsApp" (account/login.php).
   Uses the variables from brand.css. Buttons in the WhatsApp panel are all white with a black
   border, reversing to black with white text on hover. */

/* ---- spacing: Google button, then the WhatsApp button ------------------------------------ */
.google-signin-wrap--stacked { margin-bottom: 12px; }

/* ---- "Sign in with WhatsApp": drawn to match Google's own outline button --------------------
   Google renders its button itself (white, thin grey border, 40px tall, small corners, 320px max). */
.wa-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; max-width: 320px; height: 40px; padding: 0 12px;
  background: #fff; border: 1px solid #dadce0; border-radius: 4px;
  color: #3c4043; cursor: pointer;
  font-family: "Google Sans", Roboto, Arial, sans-serif; font-size: 14px; font-weight: 500; letter-spacing: .25px;
  transition: background .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.wa-btn:hover { background: #f8f9fa; border-color: #d2d5d9; box-shadow: 0 1px 2px rgba(60, 64, 67, .25), 0 1px 3px 1px rgba(60, 64, 67, .12); }
.wa-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wa-btn[aria-expanded="true"] { background: #f8f9fa; }
.wa-btn__logo { width: 18px; height: 18px; flex: none; }

/* ---- the panel that opens under it ------------------------------------------------------ */
.otp-panel { margin-top: 16px; max-width: 460px; }

.otp-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.otp-row .input-field { flex: 1 1 9rem; width: auto; min-width: 0; height: 44px; }

.otp-hint { margin: .6rem 0 0; }
.otp-sentto { margin: 0 0 .8rem; font-size: .92rem; }

/* All buttons in the panel: white, black border; black with white text on hover. */
.button.otp-btn {
  min-height: 44px; padding: .5rem 1.3rem;
  background: #fff; color: var(--ink); border: 1px solid var(--ink);
}
.button.otp-btn:hover:not(:disabled) { background: var(--ink); color: #fff; }
.button.otp-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.button.otp-btn--small { min-height: 38px; padding: .35rem 1rem; font-size: .8rem; }

/* ---- country picker --------------------------------------------------------------------- */
.wa-country { position: relative; flex: 0 0 auto; }
.wa-country__btn {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  height: 44px; min-width: 8.6rem; padding: 0 .75rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  color: var(--ink); font: inherit; font-size: .92rem; cursor: pointer; white-space: nowrap;
}
.wa-country__btn:hover { border-color: var(--ink-muted); }
.wa-country__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.wa-country__btn[aria-expanded="true"] { border-color: var(--accent); background: var(--paper); }
.wa-country__caret { width: 10px; height: 6px; flex: none; color: var(--ink-muted); }

.wa-country__pop {
  position: absolute; z-index: 10; top: calc(100% + 4px); left: 0;
  width: 19rem; max-width: calc(100vw - 2.5rem);
  background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(19, 32, 46, .16);
}
.wa-country__search {
  display: block; width: 100%; height: 42px; padding: 0 .8rem;
  border: none; border-bottom: 1px solid var(--line); background: #fff;
  color: var(--ink); font: inherit; font-size: .92rem; outline: none;
}
.wa-country__search:focus { border-bottom-color: var(--accent); }
.wa-country__list { list-style: none; margin: 0; padding: 0; max-height: 15rem; overflow-y: auto; }
.wa-country__item {
  display: flex; justify-content: space-between; gap: .8rem;
  padding: .55rem .8rem; font-size: .9rem; color: var(--ink); cursor: pointer;
}
.wa-country__item.is-active { background: var(--panel); }
.wa-country__item[aria-selected="true"] { font-weight: 700; }
.wa-country__dial { color: var(--ink-muted); flex: none; font-variant-numeric: tabular-nums; }
.wa-country__empty { padding: .7rem .8rem; font-size: .88rem; color: var(--ink-muted); }

/* ---- code step -------------------------------------------------------------------------- */
.otp-code-input {
  flex: 0 0 9.5rem !important; text-align: center;
  font-size: 1.3rem; letter-spacing: .45em; font-variant-numeric: tabular-nums;
  padding-left: calc(.85rem + .45em);   /* balances the trailing letter-spacing so digits look centred */
}
.otp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: .8rem; }

/* A text-style button for "Use a different number". */
.otp-link {
  background: none; border: none; padding: .4rem 0; cursor: pointer;
  color: var(--ink-muted); font: inherit; font-size: .85rem; text-decoration: underline;
}
.otp-link:hover { color: var(--ink); }

/* ---- notice under the buttons ----------------------------------------------------------- */
.signin-notice { margin: 1.6rem 0 0; font-size: .8rem; line-height: 1.5; color: var(--ink-muted); }
.signin-notice a { color: var(--ink); text-decoration: underline; }
.signin-notice a:hover { color: var(--accent); }

/* ---- small screens: the Send/Sign in button drops under the box ------------------------- */
@media (max-width: 520px) {
  .otp-row .input-field { flex-basis: 7rem; }
  .otp-row .otp-btn { flex: 1 1 100%; }
  .otp-code-input { flex: 1 1 auto !important; }
}
