/* AD Designers — auth pages */
:root {
  --ad-black: #111111;
  --ad-ink: #1c1c1c;
  --ad-orange: #EE7A25;
  --ad-orange-dark: #D4661A;
  --ad-cream: #F6F5F3;
  --ad-muted: #6b6b6b;
  --ad-border: #e3e1dd;
  --ad-radius: 10px;
}

* { box-sizing: border-box; }

body.auth-body {
  margin: 0;
  min-height: 100vh;
  background: var(--ad-cream);
  color: var(--ad-ink);
  font-family: "DM Sans", system-ui, sans-serif;
}

.auth-shell {
  display: flex;
  min-height: 100vh;
}

/* ---------- Brand panel ---------- */
.auth-brand {
  position: relative;
  flex: 0 0 44%;
  background: var(--ad-black);
  color: #fff;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 48px;
}

.auth-brand-inner { position: relative; z-index: 1; max-width: 400px; }

.brand-mark {
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 104px;
  line-height: .9;
  letter-spacing: -6px;
}

.brand-bar {
  width: 170px;
  height: 12px;
  background: var(--ad-orange);
  border-radius: 2px 6px 6px 2px;
  transform: skewX(-12deg);
  margin: 10px 0 28px;
}

.brand-name {
  font-family: "Playfair Display", serif;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: .5px;
  margin: 0;
}

.brand-tagline {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  color: var(--ad-orange);
  margin: 4px 0 40px;
}

.brand-points { list-style: none; padding: 0; margin: 0; }
.brand-points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: #cfcfcf;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 15px;
}
.brand-points i { color: var(--ad-orange); font-size: 18px; line-height: 1.2; }

/* A loose stitched thread across the panel */
.thread-line {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 70px;
  height: 0;
  border-top: 2px dashed rgba(238,122,37,.35);
  transform: rotate(-8deg);
}

/* ---------- Form panel ---------- */
.auth-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 14px;
  padding: 36px 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,.05);
}
.auth-card.wide { max-width: 560px; }

.auth-logo { display: block; text-align: center; margin-bottom: 18px; }
.auth-logo img { height: 92px; width: auto; }

.auth-heading {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 26px;
  text-align: center;
  margin: 0 0 6px;
}
.auth-sub { text-align: center; color: var(--ad-muted); margin-bottom: 24px; }

.auth-alert { border-radius: var(--ad-radius); font-size: 14px; }

/* ---------- Form controls ---------- */
.auth-card .form-label { font-weight: 500; font-size: 14px; margin-bottom: 6px; }
.auth-card .form-control,
.auth-card .form-select {
  border-radius: var(--ad-radius);
  border-color: var(--ad-border);
  padding: 11px 14px;
  font-size: 15px;
  min-height: 46px;
}
.auth-card .form-control:focus,
.auth-card .form-select:focus {
  border-color: var(--ad-orange);
  box-shadow: 0 0 0 .2rem rgba(238,122,37,.18);
}
.auth-card .is-invalid { border-color: #dc3545; }
.auth-card .form-text { font-size: 12.5px; }

.input-icon { position: relative; }
.input-icon > i {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: #9a9a9a; pointer-events: none;
}
.input-icon .form-control { padding-left: 40px; }

.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: #8a8a8a; padding: 8px 10px; line-height: 1;
}
.pw-toggle:hover { color: var(--ad-ink); }
.input-icon.has-toggle .form-control { padding-right: 44px; }

.btn-ad {
  background: var(--ad-black);
  color: #fff;
  border: 0;
  border-radius: var(--ad-radius);
  padding: 12px 18px;
  font-weight: 700;
  min-height: 48px;
  transition: background .15s ease;
}
.btn-ad:hover, .btn-ad:focus { background: var(--ad-orange); color: #fff; }
.btn-ad:disabled { opacity: .7; }

.auth-link { color: var(--ad-orange-dark); font-weight: 500; text-decoration: none; }
.auth-link:hover { color: var(--ad-black); text-decoration: underline; }

.auth-divider {
  text-align: center; color: var(--ad-muted); font-size: 14px; margin-top: 22px;
}

.auth-footnote { color: #9a9a9a; font-size: 13px; margin-top: 18px; }

.form-check-input:checked { background-color: var(--ad-orange); border-color: var(--ad-orange); }
.form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(238,122,37,.18); border-color: var(--ad-orange); }

@media (max-width: 575.98px) {
  .auth-card { padding: 28px 20px; border-radius: 12px; }
  .auth-logo img { height: 76px; }
}
