@font-face {
  font-family: 'Nicky Sans';
  src: url('../fonts/NickySans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Nicky Sans';
  src: url('../fonts/NickySans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}
:root {
  --bg: #f5f5f5;
  --panel: #ffffff;
  --text: #111111;
  --muted: #555555;
  --border: #d8d8d8;
  --accent: #000000;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Nicky Sans', Arial, sans-serif;
}
.page-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}
h1, h2, h3 {
  margin: 0 0 12px;
  font-weight: 700;
}
p.lead, .muted { color: var(--muted); }
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.login-card {
  width: 100%;
  max-width: 460px;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.brand-lockup img {
  width: 160px;
  max-width: 100%;
  height: auto;
}
label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 700;
}
input[type="text"],
input[type="password"],
input[type="number"],
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}
input:focus, select:focus {
  outline: 2px solid #333;
  outline-offset: 1px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}
.grid .full { grid-column: 1 / -1; }
.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  background: #000;
  color: #fff;
  text-decoration: none;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.button.secondary {
  background: #fff;
  color: #111;
  border: 1px solid var(--border);
}
.error-box {
  background: #fff3f3;
  color: #8b1e1e;
  border: 1px solid #efc5c5;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.field-error {
  color: #8b1e1e;
  font-size: 13px;
  margin-top: 6px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.letter-shell {
  max-width: 850px;
  margin: 24px auto;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}
.letter {
  padding: 36px;
  background: #fff;
  color: #111;
  font-family: Arial, sans-serif;
  font-size: 11pt;
  line-height: 1.45;
}
.brand-header {
  margin-bottom: 18px;
}
.brand-logo {
  width: 150px;
  height: auto;
  display: block;
  margin-bottom: 10px;
}
.company-lines div {
  line-height: 1.35;
}
.confidential {
  font-weight: 700;
}
.signature-block {
  margin-top: 18px;
}
.signature-gap {
  height: 28px;
}
.cc-line {
  margin-top: 8px;
}
.date-line {
  margin-top: 22px;
}
.preview-note {
  margin-bottom: 16px;
}
@media (max-width: 700px) {
  .grid { grid-template-columns: 1fr; }
  .letter { padding: 24px; }
}
