/* CLAILA web v2: forms and the small pages built from them (Figma "CLAILA UI", page W3): login, register, contact, FAQ
   and "page not found". Loaded on those pages only. */

/* ---- fields */
.w-form { display: flex; flex-direction: column; gap: 20px; }
.w-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.w-field-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.w-label { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--w-text-1); }
.w-field-link { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--w-accent); }
.w-field-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.w-input, .w-textarea { width: 100%; height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--w-line-strong); background: var(--w-surface); font: inherit; font-size: 15px; line-height: 22px;
  color: var(--w-text-1); outline: 0; transition: border-color .15s, box-shadow .15s; }
.w-textarea { height: auto; min-height: 160px; padding: 13px 16px; line-height: 24px; resize: vertical; }
.w-input::placeholder, .w-textarea::placeholder { color: var(--w-text-3); }
.w-input:focus, .w-textarea:focus { border-color: var(--w-action); box-shadow: 0 0 0 4px rgba(91, 91, 214, .16); }
.w2 .w-input:focus-visible, .w2 .w-textarea:focus-visible { outline: 0; }
.w-input.is-bad, .w-textarea.is-bad { border-color: #C4320A; }
.w-pass { position: relative; }
.w-pass .w-input { padding-right: 52px; }
.w-pass-toggle { position: absolute; right: 6px; top: 6px; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 9px; color: var(--w-text-3); }
.w-pass-toggle:hover { background: var(--w-tint); color: var(--w-text-1); }
.w-pass-toggle[aria-pressed="true"] { color: var(--w-accent); }
.w-hint { font-size: 13px; line-height: 18px; color: var(--w-text-3); }
.w-hint.is-bad { color: #B42318; }
/* the security check takes room only when Cloudflare decides to show it */
.w-turnstile:empty { display: none; }
.w-form-msg { padding: 12px 14px; border-radius: 12px; background: #FEF0EC; color: #912018; font-size: 14px; line-height: 20px; }
.w-alert { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 12px; background: var(--w-accent-soft); color: var(--w-text-1); font-size: 15px; line-height: 22px; }
.w-alert-warn { background: var(--w-g-ind-soft); }
.w-alert-ok { background: var(--w-g-dev-soft); }
.w-alert-link { font-weight: 600; color: var(--w-accent); text-decoration: underline; text-underline-offset: 3px; }
.w-btn-block { width: 100%; height: 48px; font-size: 16px; }
/* a longer translation may take two lines instead of running out of the button (one line keeps the 48px look) */
.w-btn-block, .w-auth-head .w-eyebrow { height: auto; white-space: normal; text-align: center; }
.w-btn-block { min-height: 48px; padding-top: 10px; padding-bottom: 10px; }
.w-auth-head .w-eyebrow { min-height: 30px; padding-top: 6px; padding-bottom: 6px; text-align: left; }
.w-btn-ghost { background: var(--w-surface); color: var(--w-text-1) !important; border: 1px solid var(--w-line-strong); }
.w-btn-ghost:hover { background: var(--w-surface); border-color: var(--w-text-1); }
.w-btn[disabled] { opacity: .6; cursor: progress; }

/* ---- login and register */
.w-auth { padding: 64px 0 72px; }
.w-auth-in { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 72px; align-items: stretch; }
.w-auth-form { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.w-auth-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.w-auth-head h1 { font-size: 40px; line-height: 46px; font-weight: 600; letter-spacing: -.015em; }
.w-auth-head p { font-size: 17px; line-height: 26px; color: var(--w-text-2); }
.w-social { display: flex; flex-direction: column; gap: 10px; }
.w-social .w-btn { gap: 10px; font-size: 15px; }
.w-social img { display: block; flex: none; }
.w-social-apple { filter: invert(1); }
.w-or { display: flex; align-items: center; gap: 12px; font-size: 13px; line-height: 18px; color: var(--w-text-3); }
.w-or::before, .w-or::after { content: ''; flex: 1; height: 1px; background: var(--w-line); }
.w-auth-terms { font-size: 13px; line-height: 20px; color: var(--w-text-3); }
.w-auth-terms a { color: var(--w-text-2); text-decoration: underline; text-underline-offset: 2px; }
.w-auth-switch { font-size: 15px; line-height: 22px; color: var(--w-text-2); }
.w-auth-switch a { font-weight: 600; color: var(--w-accent); }
.w-auth-switch a:hover { text-decoration: underline; text-underline-offset: 3px; }
.w-auth-panel { display: flex; flex-direction: column; justify-content: center; gap: 28px; min-height: 560px; padding: 56px; border-radius: 24px; color: var(--w-on-ink);
  background: linear-gradient(125deg, #0A1230 0%, #1B1F5C 62%, #3A2A86 100%); }
.w-auth-panel h2 { font-size: 40px; line-height: 46px; font-weight: 600; letter-spacing: -.015em; text-wrap: balance; }
.w-auth-points { display: flex; flex-direction: column; gap: 14px; }
.w-auth-points li { display: flex; gap: 12px; font-size: 17px; line-height: 26px; }
.w-auth-points .w-ic { margin-top: 3px; color: var(--w-mint); }
.w-auth-panel-foot { font-size: 14px; line-height: 22px; color: var(--w-on-ink-2); }

/* ---- page head of the small pages */
.w-page-head { padding: 64px 0 0; }
.w-page-head .w-wrap { display: flex; flex-direction: column; gap: 12px; }
.w-page-head .w-h1 { font-size: 52px; line-height: 58px; }
.w-page-head .w-lead { max-width: 640px; }

/* ---- contact */
.w-contact { padding: 48px 0 96px; }
.w-contact-in { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; }
.w-form-card { padding: 32px; border-radius: var(--w-r-card); border: 1px solid var(--w-line); background: var(--w-surface); box-shadow: var(--w-shadow-md); }
.w-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.w-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.w-form-actions span { font-size: 14px; line-height: 20px; color: var(--w-text-3); }
.w-contact-side { display: flex; flex-direction: column; gap: 16px; }
.w-info { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px; border-radius: var(--w-r-card); border: 1px solid var(--w-line); background: var(--w-surface); }
.w-info h2 { margin-top: 6px; font-size: 18px; line-height: 26px; font-weight: 600; }
.w-info p { font-size: 15px; line-height: 24px; color: var(--w-text-2); }

/* ---- FAQ */
.w-faqp { padding: 40px 0 96px; }
.w-pilltabs-list { display: flex; flex-wrap: wrap; gap: 10px; }
.w-faqp-in { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; margin-top: 40px; }
.w-faqp-lists .w-faq-list { border-top: 1px solid var(--w-line); }
.w-faqp-side { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px; border-radius: var(--w-r-card); background: var(--w-tint); }
.w-faqp-side h2 { font-size: 20px; line-height: 28px; font-weight: 600; }
.w-faqp-side p { font-size: 15px; line-height: 24px; color: var(--w-text-2); }

/* ---- page not found */
.w-404 { padding: 120px 0; }
.w-404 .w-wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.w-404 .w-h1 { font-size: 52px; line-height: 58px; }
.w-404 .w-lead { max-width: 560px; }
.w-404-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

@media (max-width: 1020px) {
  .w-auth { padding: 40px 0 64px; }
  .w-auth-in { grid-template-columns: minmax(0, 480px); justify-content: center; }
  .w-auth-panel { display: none; }
  .w-page-head { padding-top: 48px; } .w-page-head .w-h1 { font-size: 40px; line-height: 46px; }
  .w-contact-in { grid-template-columns: 1fr; }
  .w-faqp-in { grid-template-columns: 1fr; gap: 32px; }
  .w-404 { padding: 80px 0; } .w-404 .w-h1 { font-size: 40px; line-height: 46px; }
}
@media (max-width: 680px) {
  .w-auth { padding: 28px 0 48px; }
  .w-auth-head h1 { font-size: 30px; line-height: 36px; }
  .w-page-head { padding-top: 32px; } .w-page-head .w-h1 { font-size: 34px; line-height: 40px; }
  .w-contact { padding: 28px 0 64px; }
  .w-form-card { padding: 20px; }
  .w-form-row { grid-template-columns: 1fr; }
  .w-form-actions .w-btn { width: 100%; }
  .w-form-actions .w-btn, .w-404-actions .w-btn { height: auto; min-height: 48px; padding-top: 12px; padding-bottom: 12px; white-space: normal; text-align: center; }
  .w-faqp { padding: 28px 0 64px; } .w-faqp-in { margin-top: 28px; }
  .w-404 { padding: 56px 0; } .w-404 .w-h1 { font-size: 32px; line-height: 38px; } .w-404-actions .w-btn { width: 100%; }
}
