/* =============================================================================
 * StyleKro — Mobile-number (OTP) auth styles  [SELF-CONTAINED ADD-ON]
 * Pairs with web/phone_auth.js. Revert = remove this file + its <link> tag.
 * Loaded AFTER styles.css so it can lean on existing tokens (--accent, --grad…).
 * Redesigned to match the "Continue with mobile" login mock.
 * ===========================================================================*/

.pa-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.pa-login {
  margin-top: 4px;
}

/* ---- Circular "or" divider ------------------------------------------------ */
.pa-or {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0 4px;
  height: 28px;
}
.pa-or::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--line-strong, #e3e3e8);
}
.pa-or-text {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 56, 92, 0.08);
  color: var(--accent, #ff385c);
  font-size: 13px;
  font-weight: 600;
}

/* ---- "Continue with mobile" header --------------------------------------- */
.pa-mob-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pa-mob-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink, #1c1c22);
}
.pa-mob-hint {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--muted, #6f7282);
}
.pa-mob-hint strong {
  color: var(--ink, #1c1c22);
  font-weight: 600;
}

/* ---- Phone input group (country code + number) --------------------------- */
.pa-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pa-phone-group {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line-strong, #d8d8de);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pa-phone-group:focus-within {
  border-color: var(--accent, #ff385c);
  box-shadow: 0 0 0 3px rgba(255, 56, 92, 0.12);
}

/* Country-code selector: visual face + an invisible native <select> on top. */
.pa-cc {
  position: relative;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--line-strong, #e6e6ea);
  background: #fafafb;
}
.pa-cc-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  margin: 0;
  cursor: pointer;
  font-size: 16px; /* avoids iOS zoom */
}
.pa-cc-face {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  pointer-events: none;
  white-space: nowrap;
}
.pa-cc-flag {
  font-size: 18px;
  line-height: 1;
}
.pa-cc-code {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink, #1c1c22);
}
.pa-cc-chev {
  color: var(--muted, #9aa0b4);
}
.pa-num {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--ink, #1c1c22);
  font-family: inherit;
}
.pa-num::placeholder {
  color: var(--muted, #9aa0b4);
}

/* ---- Gradient CTA (Send OTP / Verify) ------------------------------------ */
.pa-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 15px 20px;
  background: var(--grad, linear-gradient(135deg, #ff385c 0%, #e00b41 100%));
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 14px 30px -12px rgba(255, 56, 92, 0.55);
  transition: box-shadow 0.18s ease, transform 0.12s ease, opacity 0.15s ease;
}
.pa-cta:hover {
  box-shadow: 0 18px 38px -12px rgba(255, 56, 92, 0.7);
}
.pa-cta:active {
  transform: scale(0.99);
}
.pa-cta:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}
.pa-cta-icon {
  flex-shrink: 0;
}

/* ---- OTP phase ----------------------------------------------------------- */
.pa-otp {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-strong, #d8d8de);
  background: #fff;
  color: var(--ink, #1c1c22);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-align: center;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pa-otp:focus {
  border-color: var(--accent, #ff385c);
  box-shadow: 0 0 0 3px rgba(255, 56, 92, 0.12);
}
.pa-otp::placeholder {
  letter-spacing: normal;
  font-weight: 400;
  color: var(--muted, #9aa0b4);
}
.pa-dev {
  margin: 0;
  font-size: 12.5px;
  color: #b8761f;
  background: rgba(240, 180, 84, 0.12);
  border: 1px solid rgba(240, 180, 84, 0.3);
  border-radius: 10px;
  padding: 8px 12px;
}

.pa-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.pa-link {
  background: none;
  border: none;
  padding: 4px 0;
  color: var(--accent, #ff385c);
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.pa-link:disabled {
  opacity: 0.5;
  cursor: default;
}
.pa-link.pa-danger {
  color: #e5484d;
}

.pa-error {
  margin: 2px 0 0;
  font-size: 13px;
  text-align: center;
}
.pa-ok {
  margin: 2px 0 0;
  font-size: 13px;
  color: #18794e;
}

/* ---- Profile "linked mobile" block (LinkBlock) --------------------------- */
.pa-link-block {
  gap: 8px;
}
.pa-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink, #1c1c22);
}
.pa-hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted, #6f7282);
}
.pa-current {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pa-current-num {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink, #1c1c22);
}
.pa-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #18794e;
  background: rgba(70, 211, 154, 0.14);
  border: 1px solid rgba(70, 211, 154, 0.32);
  border-radius: 999px;
  padding: 2px 8px;
}
.pa-current .pa-actions {
  margin-left: auto;
}

/* LinkBlock reuses a bordered input look for its number / OTP fields. */
.pa-link-block .pa-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong, #d8d8de);
  background: #fff;
  color: var(--ink, #1c1c22);
  font-size: 15px;
  font-family: inherit;
  outline: none;
}
.pa-link-block .pa-input:focus {
  border-color: var(--accent, #ff385c);
  box-shadow: 0 0 0 3px rgba(255, 56, 92, 0.12);
}
.pa-link-block .pa-btn {
  width: auto;
}
