/* ═══════════════════════════════════════════════════════
   ProMyBiz — Auth Pages  (login / register / forgot pw)
   Brand: #FF6B00 orange · #323232 dark · white bg
   ═══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:     #323232;
  --ink2:    #5a5a5a;
  --ink3:    #9a9a9a;
  --bg:      #f8f6f3;
  --white:   #ffffff;
  --bd:      #e6e2dc;
  --bd2:     #d0cbc3;
  --pri:     #FF6B00;
  --pri2:    #e05e00;
  --prd:     rgba(255,107,0,.09);
  --prb:     rgba(255,107,0,.25);
  --green:   #27c982;
  --red:     #e85555;
  --r:       10px;
  --r2:      14px;
  --shadow:  0 2px 20px rgba(50,50,50,.09);
}

html { -webkit-font-smoothing: antialiased; height: 100%; }
body {
  font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', sans-serif;
  background: var(--bg); color: var(--ink);
  min-height: 100%; display: flex; flex-direction: column;
}

/* ── Two-column layout ───────────────────────────────── */
.auth-wrap {
  flex: 1; display: flex; min-height: 100vh;
}

/* Brand panel — left, desktop only */
.auth-brand {
  width: 360px; flex-shrink: 0;
  background: var(--ink);
  display: flex; flex-direction: column;
  padding: 48px 36px;
}
@media (max-width: 780px) { .auth-brand { display: none; } }

.auth-brand-logo { margin-bottom: 36px; }
.auth-brand-logo img { height: 34px; width: auto; filter: brightness(0) invert(1); display: block; }

.auth-brand-tagline {
  font-size: 28px; font-weight: 700; color: #fff;
  line-height: 1.2; margin-bottom: 14px; letter-spacing: -.4px;
}
.auth-brand-tagline span { color: var(--pri); }
.auth-brand-sub { font-size: 13.5px; color: rgba(255,255,255,.48); line-height: 1.7; margin-bottom: 36px; }

.auth-brand-features { list-style: none; }
.auth-brand-feat {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 13px; color: rgba(255,255,255,.68);
}
.auth-brand-feat:last-child { border-bottom: none; }
.auth-feat-dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--pri); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #fff; font-weight: 700;
}

.auth-brand-footer {
  margin-top: auto; padding-top: 24px;
  font-size: 12px; color: rgba(255,255,255,.28);
}

/* Right panel — form */
.auth-panel {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 20px;
}

.auth-box { width: 100%; max-width: 400px; }

/* Mobile logo (shown only on mobile) */
.auth-mobile-logo {
  display: none;
}

/* Mobile: full-width dark header strip (logo is outside auth-box) */
@media (max-width: 780px) {
  .auth-mobile-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #323232;
    width: 100%;
    padding: 20px 24px;
    flex-shrink: 0;
  }
  .auth-mobile-logo img {
    height: 34px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
  }
  /* Panel becomes column: dark logo strip on top, form below */
  .auth-panel {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    justify-content: flex-start;
    background: #fff;
  }
  .auth-box {
    flex: 1;
    max-width: 100%;
    padding: 24px 20px 40px;
    width: 100%;
  }
  body { background: #fff; }
}

.auth-title { font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -.3px; margin-bottom: 4px; }
.auth-sub   { font-size: 14px; color: var(--ink3); margin-bottom: 22px; }

/* ── Trial badge ── */
.trial-badge {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--prd); border: 1px solid var(--prb);
  border-radius: var(--r); padding: 11px 14px; margin-bottom: 18px;
  font-size: 13px; color: var(--pri2); line-height: 1.5;
}
.trial-badge-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* ── Card ── */
.auth-card {
  background: var(--white); border: 1px solid var(--bd);
  border-radius: var(--r2); padding: 26px;
  box-shadow: var(--shadow);
}

/* ── Messages ── */
.auth-msg {
  display: none; border-radius: var(--r); padding: 11px 14px;
  font-size: 13px; line-height: 1.55; margin-bottom: 16px;
}
.auth-msg.error   { background: rgba(232,85,85,.08); border: 1px solid rgba(232,85,85,.22); color: #b73232; }
.auth-msg.success { background: rgba(39,201,130,.08); border: 1px solid rgba(39,201,130,.25); color: #1a7a4a; }
.auth-msg.info    { background: var(--prd); border: 1px solid var(--prb); color: var(--pri2); }

/* ── Fields ── */
.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

.field label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--ink2); margin-bottom: 6px; letter-spacing: .1px;
}
.field input {
  width: 100%; padding: 10px 13px;
  background: var(--bg); border: 1.5px solid var(--bd);
  border-radius: var(--r); font-size: 14px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s; outline: none;
  -webkit-appearance: none;
}
.field input:focus {
  border-color: var(--prb);
  box-shadow: 0 0 0 3px rgba(255,107,0,.1);
  background: var(--white);
}
.field input::placeholder { color: var(--ink3); }
.field-hint { font-size: 11px; color: var(--ink3); margin-top: 5px; line-height: 1.4; }

/* ── Password with toggle ── */
.field-pw { position: relative; }
.field-pw input { padding-right: 42px; }
.pw-toggle {
  position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--ink3); font-size: 14px; padding: 4px; line-height: 1;
}
.pw-toggle:hover { color: var(--ink); }

/* ── Forgot password row ── */
.field-row-between {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.field-row-between label { margin-bottom: 0; }
.link-small { font-size: 12px; color: var(--ink3); text-decoration: none; }
.link-small:hover { color: var(--pri); }

/* ── Submit button ── */
.btn-auth {
  width: 100%; padding: 12px 16px;
  background: var(--pri); color: #fff; border: none;
  border-radius: var(--r); font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background .15s, transform .1s;
  letter-spacing: .1px; margin-top: 6px; line-height: 1.3;
}
.btn-auth:hover  { background: var(--pri2); }
.btn-auth:active { transform: scale(.985); }
.btn-auth:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* Spinner inside button */
.btn-spin {
  display: inline-block; width: 13px; height: 13px;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  border-radius: 50%; animation: bspin .6s linear infinite;
  vertical-align: middle; margin-right: 6px;
}
@keyframes bspin { to { transform: rotate(360deg); } }

/* ── Auth footer ── */
.auth-footer {
  text-align: center; margin-top: 18px;
  font-size: 13px; color: var(--ink3);
}
.auth-footer a { color: var(--pri); text-decoration: none; font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 480px) {
  .auth-title { font-size: 20px; }
  .auth-card  { padding: 20px 16px; }
}
