/* ==========================================================================
   Easyclicks — account area (register / login / account)
   Extra styles on top of style.css + legal.css. Logical properties = RTL safe.
   ========================================================================== */

.auth-hero { padding: 58px 0 8px; }
.auth-wrap { max-width: 480px; margin-inline: auto; }
.auth-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.6vw, 36px);
  line-height: 1.15;
  margin-top: 14px;
  color: var(--ink);
}
.auth-sub { margin-top: 10px; font-size: 15px; color: var(--muted); }

.auth-card {
  margin: 24px 0 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 28px 26px;
}
.auth-form { display: flex; flex-direction: column; gap: 15px; }

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field input[type="email"],
.field input[type="password"],
.field input[type="text"],
.field input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-soft);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
  background: #fff;
}
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }

.pw-wrap { position: relative; }
.pw-wrap input { padding-inline-end: 76px; }
.pw-toggle {
  position: absolute;
  inset-inline-end: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  padding: 6px 9px;
  border-radius: 8px;
  white-space: nowrap;
}
.pw-toggle:hover { background: var(--primary-soft); }

.terms-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  cursor: pointer;
}
.terms-check input { margin-top: 3px; accent-color: var(--primary); width: 16px; height: 16px; flex: none; }
.terms-check a { color: var(--primary); font-weight: 600; }
.terms-check a:hover { text-decoration: underline; }

.form-error {
  display: none;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  line-height: 1.5;
}
.form-error.show { display: block; }
.form-ok {
  display: none;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  line-height: 1.5;
}
.form-ok.show { display: block; }

.auth-alt { margin-top: 20px; text-align: center; font-size: 14px; color: var(--muted); }
.auth-alt a { color: var(--primary); font-weight: 600; }
.auth-alt a:hover { text-decoration: underline; }

.auth-card .btn { width: 100%; margin-top: 2px; }
.btn[disabled] { opacity: 0.6; cursor: default; }
.btn[disabled]:hover { transform: none; box-shadow: 0 6px 18px rgba(108, 92, 231, 0.35); }

/* ---------- account page ---------- */
.acct-wrap { max-width: 640px; }
.acct-grid { display: grid; gap: 18px; margin-top: 24px; }
.acct-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px 24px;
}
.acct-card h2 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 4px;
  color: var(--ink);
}
.acct-card .acct-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }

.acct-rows { margin-bottom: 16px; }
.acct-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--bg-soft);
  font-size: 14.5px;
}
.acct-row:last-child { border-bottom: none; }
.acct-row .k { color: var(--muted); flex: none; }
.acct-row .v { color: var(--ink); font-weight: 600; text-align: end; word-break: break-word; }

.site-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.site-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}
.site-item .s-name { font-weight: 700; color: var(--ink); font-size: 15px; }
.site-item .s-meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.status-pill {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.status-active { background: #ecfdf5; color: #047857; }
.status-inactive { background: #f1f5f9; color: #475569; }
.status-deploying { background: #eff6ff; color: #1d4ed8; }
.status-error { background: #fef2f2; color: #b91c1c; }

.sites-empty { text-align: center; padding: 22px 10px 6px; color: var(--muted); font-size: 14.5px; }

.acct-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.acct-actions .btn { margin-top: 0; }

@media (max-width: 480px) {
  .auth-hero { padding-top: 44px; }
  .auth-card { padding: 24px 18px; }
  .acct-card { padding: 20px 18px; }
}

/* hidden attribute must beat display rules like .acct-grid{display:grid} */
[hidden] { display: none !important; }

/* ---- T163 OTP code step ---- */
.otp-box { display: flex; flex-direction: column; gap: 14px; }
.otp-title { font-family: var(--font-display); font-size: 20px; color: var(--ink); margin: 0; }
.otp-sub { font-size: 14px; color: var(--muted); margin: 0; }
.otp-inputs { display: flex; gap: 8px; justify-content: center; margin: 6px 0 2px; }
.otp-inputs input {
  width: 46px; height: 54px; text-align: center; font-size: 22px; font-weight: 700;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-soft); color: var(--ink); font-family: inherit;
}
.otp-inputs input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); background: #fff; }
.otp-error { display: none; font-size: 13.5px; color: #b3261e; background: #fdecea; border: 1px solid #f5c6c0; border-radius: var(--radius-sm); padding: 9px 12px; }
.otp-error.show { display: block; }
.otp-actions { display: flex; flex-direction: column; gap: 8px; }
.otp-verify { width: 100%; }
.otp-resend, .otp-back { align-self: center; font-size: 13.5px; }
.otp-resend:disabled { opacity: .55; cursor: default; }
.forgot-link { font-size: 13.5px; text-align: end; margin-top: -8px; }
.forgot-link a { color: var(--primary); font-weight: 600; }
@media (max-width: 420px) {
  .otp-inputs input { width: 42px; height: 50px; font-size: 20px; }
}
