:root {
  --auth-red: #d92d20;
  --auth-red-dark: #b42318;
  --auth-red-50: #fef3f2;
  --auth-ink: #101828;
  --auth-muted: #667085;
  --auth-border: #e4e7ec;
  --auth-bg: #f4f5f7;
}

* {
  box-sizing: border-box;
}

body.auth-body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--auth-bg);
  color: var(--auth-ink);
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
}

body.auth-body::before {
  display: none;
}

.auth-wrap {
  width: 100%;
  max-width: 420px;
}

.auth-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--auth-border);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.04);
}

.auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.auth-brand img {
  height: 38px;
  width: auto;
}

.auth-eyebrow {
  color: var(--auth-red);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.auth-title {
  margin: 3px 0 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  margin: 5px 0 20px;
  color: var(--auth-muted);
  font-size: 12.5px;
}

.auth-card .form-label {
  margin-bottom: 4px;
  color: #344054;
  font-size: 12px;
  font-weight: 600;
}

.auth-card .form-control {
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #d0d5dd;
  border-radius: 5px;
  background: #fff;
  color: var(--auth-ink);
  font-family: inherit;
  font-size: 13px;
}

.auth-card .form-control:focus {
  border-color: #fda29b;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.12);
  outline: none;
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--auth-red);
  border-radius: 5px;
  background: var(--auth-red);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.auth-btn:hover {
  border-color: var(--auth-red-dark);
  background: var(--auth-red-dark);
  color: #fff;
}

.auth-back {
  display: block;
  margin-top: 16px;
  color: var(--auth-muted);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.auth-back:hover {
  color: var(--auth-red);
}

.auth-alert {
  margin-bottom: 14px;
  padding: 8px 10px;
  border: 1px solid #fecdca;
  border-radius: 5px;
  background: var(--auth-red-50);
  color: var(--auth-red-dark);
  font-size: 12.5px;
  text-align: center;
}

.auth-modal .modal-content {
  border: 1px solid var(--auth-border);
  border-radius: 8px;
}

.auth-modal .modal-title {
  font-size: 16px;
  font-weight: 700;
}

.auth-modal .modal-body {
  font-size: 12.5px;
}

.auth-modal .form-text {
  color: var(--auth-muted);
  font-size: 11.5px;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 20px;
  }
}
