/* ============================================================
   iHRMS — Auth pages (signup) styled on landing tokens.
   Loads after style.css and reuses its :root variables.
   ============================================================ */

.auth-page {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

/* ---------- Left copy panel ---------- */
.auth-copy { position: sticky; top: 110px; }
.auth-copy .display-2 { margin-top: .35rem; }
.auth-copy .lede { margin-top: 1.2rem; margin-bottom: 1.75rem; }
.auth-perks {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  font-size: .95rem;
  color: var(--ink-3);
}
.auth-perks li { display: inline-flex; align-items: center; gap: .55rem; }
.auth-perks svg { color: var(--accent); flex: none; }

/* ---------- Form card ---------- */
.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow:
    0 1px 0 rgba(255,255,255,.6) inset,
    0 24px 48px -28px rgba(10,10,10,.14);
  max-width: 640px;
}

.auth-form { display: flex; flex-direction: column; gap: 1.1rem; }

.field label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: .4rem;
  letter-spacing: -.005em;
}
.field .hint { color: var(--muted-2); font-weight: 400; }

.input,
.select {
  width: 100%;
  font: inherit;
  font-size: .94rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: .72rem .9rem;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  appearance: none;
}
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5l3.5 3.5 3.5-3.5' stroke='%236b6b6b' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  padding-right: 2.4rem;
}
.input:focus,
.select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(10,10,10,.06);
}
.input::placeholder { color: var(--muted-2); }

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}

.f-err {
  display: block;
  margin-top: .35rem;
  font-size: .8rem;
  color: var(--accent-deep);
}

/* ---------- Logo upload ---------- */
.logo-drop {
  display: flex;
  align-items: center;
  gap: .9rem;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-sm);
  padding: .7rem .9rem;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.logo-drop:hover { border-color: var(--ink); background: var(--bg-2); }
.logo-drop input[type="file"] { display: none; }
.logo-drop-preview {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--bg-3);
  display: grid; place-items: center;
  overflow: hidden;
  color: var(--muted);
  flex: none;
}
.logo-drop-preview img { width: 100%; height: 100%; object-fit: contain; }
.logo-drop-text { font-size: .87rem; color: var(--ink-3); }
.logo-drop-text em { font-style: normal; color: var(--muted-2); display: block; font-size: .78rem; }

/* ---------- Terms checkbox ---------- */
.check {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .87rem;
  color: var(--ink-3);
  cursor: pointer;
  line-height: 1.45;
}
.check input {
  appearance: none;
  width: 18px; height: 18px;
  flex: none;
  margin-top: .1rem;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  background: var(--bg);
  cursor: pointer;
  display: grid; place-items: center;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.check input:checked {
  background: var(--ink);
  border-color: var(--ink);
}
.check input:checked::after {
  content: "";
  width: 9px; height: 5px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg) translateY(-1px);
}
.check a { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.check a:hover { color: var(--accent); }

.auth-alt {
  text-align: center;
  font-size: .88rem;
  color: var(--muted);
}
.auth-alt a { color: var(--ink); font-weight: 500; }
.auth-alt a:hover { color: var(--accent); }

textarea.input { resize: vertical; min-height: 84px; }

/* Honeypot — moved off-screen, not display:none (some bots skip hidden fields) */
.hp-field {
  position: absolute !important;
  left: -5000px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- Demo request confirmation ---------- */
.demo-thanks {
  text-align: center;
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
}
.demo-thanks-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
}
.demo-thanks h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -.025em;
}
.demo-thanks p {
  color: var(--muted);
  font-size: .95rem;
  max-width: 380px;
  line-height: 1.55;
}
.demo-thanks .btn { margin-top: .5rem; }

/* ---------- Footer ---------- */
.auth-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.auth-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  color: var(--muted);
  font-size: .85rem;
}
.auth-footer a { color: var(--muted); }
.auth-footer a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .auth-grid { grid-template-columns: 1fr; }
  .auth-copy { position: static; }
  .auth-card { max-width: 640px; }
}
@media (max-width: 640px) {
  .field-grid { grid-template-columns: 1fr; }
}
