:root { --brand: #0d6efd; --ink:#1f2d3d; --muted:#5a6b7b; --bg:#f6f8fb; --line:#eef1f6; }
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.auth-wrap {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(16,24,40,.06);
  overflow: hidden;
}

.auth-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
  display: grid;
  justify-items: center;
  row-gap: 8px;
}
.logo-wrapper { width: 220px; padding: 6px 0; display:flex; justify-content:center; }
.darithma-logo { display:block; max-width:100%; height:auto; max-height:88px; object-fit:contain !important; }
.brand-title { font-weight: 800; letter-spacing: .2px; color:#0a3c73; font-size: 18px; }

.auth-body { padding: 24px 28px; }

.auth-title { font-size: 22px; font-weight: 800; margin: 0 0 8px; }
.auth-subtitle { margin: 0 0 18px; color: var(--muted); font-size: 14px; }

.form-row { margin-bottom: 14px; }
.label { display:block; font-size: 13px; margin: 0 0 6px; color:#334154; }
.input {
  width: 100%; height: 42px; padding: 8px 12px;
  border: 1px solid #dfe3eb; border-radius: 10px; outline: none;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(13,110,253,.12); }

.btn {
  display:inline-block; width:100%; height:44px; padding:10px 16px;
  border-radius: 10px; border:0; cursor:pointer; font-weight:700;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { filter: brightness(.95); }

.helper { margin-top: 14px; font-size: 13px; color: var(--muted); }
.footer {
  padding: 14px 28px; background:#f9fbfe; border-top: 1px solid var(--line);
  font-size: 12px; color: #6b7c8f;
}

/* Make plain Django form widgets look good even without classes */
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"] { composes: input; } /* harmless if unsupported */

/* Dark-mode friendly */
@media (prefers-color-scheme: dark) {
  body { background:#0b111b; color:#e6edf3; }
  .auth-card { background:#0f1723; box-shadow:none; }
  .auth-header { border-bottom-color:#1b2433; }
  .auth-body .label { color:#cbd5e1; }
  .input { background:#101826; border-color:#1f2b3b; color:#e6edf3; }
  .footer { background:#0c1522; border-top-color:#1b2433; color:#9aa6b2; }
}
