/* Auth screens for clients.gilmedia.com.
 *
 * Design system lifted from sendajob.gilmedia.com (Send a Job by Gilmedia) so
 * every Gilmedia internal tool shares one login look: DM Sans, warm off-white
 * canvas, single centred card, orange primary action.
 *
 * Standalone stylesheet on purpose - the auth pages do not load the compiled
 * Tailwind bundle, exactly like sendajob's auth layout.
 */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,650;9..40,700;9..40,800&display=swap");

:root {
  color-scheme: light;
  --ink: #151515;
  --muted: #6c6c73;
  --line: #e5e3df;
  --soft: #f6f5f2;
  --panel: #fff;
  --blue: #d95516;
  --blue-dark: #b53f0d;
  --blue-soft: #fff0e7;
  --green: #087a55;
  --green-soft: #e9f7f1;
  --amber: #a15c00;
  --amber-soft: #fff4dc;
  --red: #b42318;
  --red-soft: #ffebe9;
  --shadow: 0 16px 42px rgba(40, 30, 20, .08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--soft);
  color: var(--ink);
  font: 15px/1.5 "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: var(--blue); }
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  font-weight: 760;
  line-height: 1.1;
  letter-spacing: -.04em;
}
h2 { margin-bottom: 6px; font-size: 1.18rem; }

button, input, select, textarea { font: inherit; }

input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 11px;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(217, 85, 22, .16);
  border-color: var(--blue);
}

label { display: block; font-weight: 650; }
label > span:first-child { display: block; margin-bottom: 6px; }

.muted { color: var(--muted); }
.small { font-size: .88rem; }

.password-field { position: relative; display: block; }
.password-field input { padding-right: 66px !important; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 5px;
  min-height: 34px;
  padding: 5px 9px;
  transform: translateY(-50%);
  background: transparent;
  color: var(--blue);
  font-size: .82rem;
}
.password-toggle:hover { background: var(--blue-soft); }

.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  padding: 9px 14px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button:hover, button:hover { background: var(--blue-dark); }
.button.secondary, button.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.button.secondary:hover, button.secondary:hover { border-color: #cbc6bd; background: var(--soft); }
.button.block, button.block { width: 100%; }
button:disabled { opacity: .62; cursor: wait; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; }
.brand-logo { flex-direction: column; align-items: flex-start; gap: 4px; }
.brand-logo img { display: block; width: 210px; height: auto; }
.auth-logo { width: 100%; align-items: center; justify-content: center; }
.auth-logo img { width: min(100%, 240px); }

.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card {
  width: min(100%, 460px);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.auth-card h1 { margin-top: 30px; }
.auth-card form { display: grid; gap: 18px; margin-top: 28px; }

.eyebrow {
  margin-bottom: 7px;
  color: #8a5a3c;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.check { display: flex; align-items: flex-start; gap: 9px; font-weight: 500; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 2px; }
.check span { margin: 0 !important; }

.auth-recovery { margin: 18px 0 0; text-align: center; font-size: .92rem; }
.auth-note {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .92rem;
}
.back-link { display: inline-block; margin-bottom: 18px; color: var(--muted); font-size: .9rem; text-decoration: none; }
.back-link:hover { color: var(--blue); }

.error {
  margin-top: 6px;
  color: var(--red);
  font-size: .88rem;
  font-weight: 600;
}
.flash {
  margin-top: 22px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--soft);
  font-size: .93rem;
}
.flash.error { margin-top: 22px; border-color: #efb5b0; background: var(--red-soft); color: var(--red); font-weight: 600; }
.flash.success { border-color: #b6e2d1; background: var(--green-soft); color: var(--green); font-weight: 600; }

.alt-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 20px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.alt-sep::before, .alt-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}
.btn-google:hover { border-color: #cbc6bd; background: var(--soft); }

.recovery-options { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.recovery-options legend { padding: 0; margin-bottom: 8px; font-weight: 650; }
.recovery-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-weight: 500;
  cursor: pointer;
}
.recovery-choice:hover { border-color: var(--blue); background: var(--blue-soft); }
.recovery-choice input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 18px; }
.recovery-choice-copy { display: block; }
.recovery-choice-copy strong { display: block; margin-bottom: 2px; }
.recovery-choice-copy small { color: var(--muted); }

.login-heading { margin-top: 30px; }
.login-heading h1 { margin-top: 0; }
