/* Datfin auth — Charcoal Studio */
:root {
  --df-ink: #141414;
  --df-accent: #e85d04;
  --df-accent-deep: #c24c00;
  --df-muted: #6b6b6b;
  --df-line: #e4e4e4;
  --df-page: #f2f2f2;
  --df-danger: #c53030;
  --df-font: 'Public Sans', system-ui, sans-serif;
  --df-display: 'Archivo', 'Public Sans', sans-serif;
}

* { box-sizing: border-box; }

body.df-auth {
  margin: 0;
  min-height: 100vh;
  font-family: var(--df-font);
  color: var(--df-ink);
  background: var(--df-page);
}

.df-auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.df-auth-visual {
  background: var(--df-ink);
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.df-auth-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, transparent 40%, rgba(232, 93, 4, 0.35)),
    url('/images/background.png') center / cover no-repeat;
  opacity: 0.35;
}

.df-auth-visual-inner {
  position: relative;
  z-index: 1;
  max-width: 26rem;
}

.df-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.df-brand {
  font-family: var(--df-display);
  font-size: clamp(3rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 0.95;
  margin: 0 0 0.85rem;
}

.df-brand span { color: var(--df-accent); }

.df-lede {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  line-height: 1.5;
}

.df-auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--df-page);
}

.df-auth-card {
  width: 100%;
  max-width: 24rem;
  background: #fff;
  border: 1px solid var(--df-line);
  border-radius: 10px;
  padding: 2rem;
}

.df-auth-card h2 {
  font-family: var(--df-display);
  font-size: 1.7rem;
  margin: 0 0 0.3rem;
}

.df-auth-sub {
  color: var(--df-muted);
  margin: 0 0 1.4rem;
}

.df-auth-error {
  background: #fde8e8;
  color: var(--df-danger);
  border-radius: 6px;
  padding: 0.65rem 0.8rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.df-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.df-field {
  display: flex;
  align-items: center;
  margin-bottom: 0.9rem;
  border: 1px solid var(--df-line);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.df-field:focus-within {
  border-color: var(--df-ink);
}

.df-field > i.fa {
  width: 42px;
  text-align: center;
  color: var(--df-muted);
}

.df-field input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0.8rem 0.8rem 0.8rem 0;
  font: inherit;
  background: transparent;
}

.df-toggle {
  padding: 0 0.8rem;
  color: var(--df-muted);
}

.df-submit {
  width: 100%;
  margin-top: 0.4rem;
  border: 0;
  border-radius: 6px;
  padding: 0.85rem 1rem;
  font: inherit;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: var(--df-accent);
}

.df-submit:hover { background: var(--df-accent-deep); }

.df-auth-foot {
  margin: 1.15rem 0 0;
  text-align: center;
  color: var(--df-muted);
}

.df-auth-foot a {
  margin-left: 0.3rem;
  color: var(--df-accent-deep);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 900px) {
  .df-auth-shell { grid-template-columns: 1fr; }
  .df-auth-visual { min-height: 30vh; padding: 2rem; }
}
