/* Auth pages (login / register / forgot-password) — ported from
   DASHBOARD_MOCKUPS/register-mockup.html. All selectors are auth-prefixed
   and scoped under .auth-shell so they never affect other guest pages. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.auth-shell {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f5f6f8;
  color: #1a202c;
  font-size: 14px;
  line-height: 1.55;
  min-height: 100vh;
}
.auth-shell *,
.auth-shell *::before,
.auth-shell *::after { box-sizing: border-box; }

/* Topbar */
.auth-topbar {
  background: #fff; border-bottom: 1px solid #edf0f4;
  padding: 16px 44px;
  display: flex; align-items: center; justify-content: space-between;
}
.auth-topbar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #1a202c; }
.auth-topbar-logo-img { height: 30px; width: auto; display: block; }
.auth-topbar-right { font-size: 13px; color: #4a5568; }
.auth-topbar-right a { color: #F97316; text-decoration: none; font-weight: 600; margin-left: 6px; }
.auth-topbar-right a:hover { color: #c2410c; }

/* Layout */
.auth-wrap { max-width: 1240px; margin: 0 auto; padding: 36px 44px 60px; }
.auth-card {
  background: #fff; border-radius: 16px; border: 1px solid #e7eaf0; overflow: hidden;
  display: grid; grid-template-columns: 1.2fr 1fr; min-height: 720px;
  box-shadow: 0 12px 40px rgba(15,23,42,0.08), 0 2px 6px rgba(15,23,42,0.04);
}

/* Form side */
.auth-form-side { padding: 44px 52px; }
.auth-step-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; background: #fef3ec; color: #c2410c;
  border-radius: 12px; font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 18px;
}
.auth-step-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #F97316; }
.auth-form-title { font-size: 32px; font-weight: 500; color: #0f172a; letter-spacing: -0.6px; margin-bottom: 10px; line-height: 1.15; }
.auth-form-sub { font-size: 14.5px; color: #475569; margin-bottom: 32px; max-width: 560px; }

.auth-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin-bottom: 24px; }
.auth-form-grid.auth-single { grid-template-columns: 1fr; max-width: 420px; }
.auth-field { display: flex; flex-direction: column; }
.auth-field.auth-col-span { grid-column: 1 / -1; }
.auth-field label { font-size: 12.5px; font-weight: 600; color: #1a202c; margin-bottom: 8px; letter-spacing: 0.2px; }
.auth-field input:not([type="checkbox"]),
.auth-field select {
  padding: 12px 14px; font-family: inherit; font-size: 14px; color: #0f172a;
  background-color: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px;
  outline: none; appearance: none; -webkit-appearance: none; -moz-appearance: none;
  font-weight: 500; width: 100%;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-field input::placeholder { color: #94a3b8; font-weight: 400; }

/* Neutralise the browser autofill highlight (Chrome's pale-blue) so
   autofilled fields match the normal field background. */
.auth-field input:-webkit-autofill,
.auth-field input:-webkit-autofill:hover,
.auth-field select:-webkit-autofill {
  -webkit-text-fill-color: #0f172a;
  -webkit-box-shadow: 0 0 0 1000px #f8fafc inset;
  box-shadow: 0 0 0 1000px #f8fafc inset;
  transition: background-color 9999s ease-in-out 0s;
  caret-color: #0f172a;
}
.auth-field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset, 0 0 0 3px rgba(249,115,22,0.12);
  box-shadow: 0 0 0 1000px #fff inset, 0 0 0 3px rgba(249,115,22,0.12);
}

.auth-field input:not([type="checkbox"]):hover,
.auth-field select:hover { border-color: #cbd5e0; background-color: #f1f5f9; }
.auth-field input:not([type="checkbox"]):focus,
.auth-field select:focus { border-color: #F97316; background-color: #fff; box-shadow: 0 0 0 3px rgba(249,115,22,0.12); }
.auth-field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' stroke='%23F97316' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px; cursor: pointer;
}
.auth-field select:disabled,
.auth-field input[readonly] { color: #64748b; cursor: not-allowed; background-color: #f1f5f9; }

/* Locked (token-mode) fields */
.auth-field-locked label::after {
  content: "Set by your brand"; margin-left: 8px; font-size: 10.5px;
  font-weight: 600; color: #94a3b8; text-transform: none; letter-spacing: 0;
}

/* Password field */
.auth-password-wrap { position: relative; display: flex; align-items: center; }
.auth-password-wrap input { padding-right: 44px; }
.auth-password-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; cursor: pointer;
  color: #64748b; font-size: 18px; line-height: 1; padding: 4px;
  display: flex; align-items: center; justify-content: center;
}
.auth-password-toggle:hover { color: #F97316; }

/* Password strength meter */
.auth-strength { margin-top: 8px; }
.auth-strength-bar { height: 5px; border-radius: 3px; background: #e2e8f0; overflow: hidden; }
.auth-strength-bar span { display: block; height: 100%; width: 0; transition: width 0.2s ease, background-color 0.2s ease; }
.auth-strength-label { margin-top: 5px; font-size: 11.5px; font-weight: 600; color: #94a3b8; }
.auth-strength[data-level="1"] .auth-strength-bar span { width: 33%; background: #ef4444; }
.auth-strength[data-level="2"] .auth-strength-bar span { width: 66%; background: #f59e0b; }
.auth-strength[data-level="3"] .auth-strength-bar span { width: 100%; background: #16a34a; }

/* Caps-Lock warning */
.auth-capslock { margin-top: 6px; font-size: 11.5px; font-weight: 600; color: #c2410c; display: none; }
.auth-capslock.auth-on { display: block; }

/* Field error + status */
.auth-error { margin-top: 6px; font-size: 12px; font-weight: 500; color: #dc2626; }
.auth-status {
  background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857;
  border-radius: 8px; padding: 10px 14px; font-size: 13px; font-weight: 500; margin-bottom: 20px;
}

/* Terms + CTA */
.auth-terms-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #334155; margin-bottom: 26px; grid-column: 1 / -1; }
.auth-terms-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: #F97316; cursor: pointer; }
.auth-terms-row a { color: #F97316; text-decoration: none; font-weight: 600; }
.auth-terms-row a:hover { text-decoration: underline; color: #c2410c; }
.auth-cta-row { display: flex; align-items: center; gap: 20px; padding-top: 4px; grid-column: 1 / -1; flex-wrap: wrap; }
.auth-btn-primary {
  padding: 13px 34px; background: #F97316; color: #fff;
  border: 1.5px solid #F97316; border-radius: 10px;
  font-size: 14.5px; font-weight: 600; cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(249,115,22,0.25); transition: all 0.15s ease;
}
.auth-btn-primary:hover { background: #c2410c; border-color: #c2410c; box-shadow: 0 6px 16px rgba(194,65,12,0.32); transform: translateY(-1px); }
.auth-btn-primary:disabled { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }
.auth-signin-hint { font-size: 13.5px; color: #475569; }
.auth-signin-hint a { color: #F97316; text-decoration: none; font-weight: 600; margin-left: 4px; }
.auth-signin-hint a:hover { color: #c2410c; }
.auth-back-link { display: inline-block; margin-top: 18px; font-size: 13px; font-weight: 600; color: #475569; text-decoration: none; }
.auth-back-link:hover { color: #F97316; }

/* Visual side */
.auth-visual-side { background: #0f172a; position: relative; overflow: hidden; min-height: 100%; }
.auth-visual-pattern {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 25% 20%, rgba(249,115,22,0.32), transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(249,115,22,0.22), transparent 55%),
    linear-gradient(135deg, #0f172a 0%, #1a202c 100%);
}
.auth-visual-pattern svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Footer */
.auth-footer {
  max-width: 1240px; margin: 0 auto; padding: 0 44px 28px;
  display: flex; justify-content: space-between; color: #718096; font-size: 12.5px;
}
.auth-footer a { color: #718096; text-decoration: none; margin-right: 20px; }
.auth-footer a:hover { color: #F97316; }

/* Responsive */
@media (max-width: 980px) {
  .auth-card { grid-template-columns: 1fr; }
  .auth-visual-side { min-height: 220px; }
  .auth-form-side { padding: 32px 28px; }
  .auth-form-grid { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 600px) {
  .auth-topbar { padding: 14px 20px; }
  .auth-wrap { padding: 20px 16px 40px; }
  .auth-form-title { font-size: 26px; }
  .auth-footer { padding: 0 20px 24px; flex-direction: column; gap: 8px; }
}
