:root {
  --navy: #0d2844;
  --navy-2: #123a61;
  --blue: #1b75d0;
  --gold: #d4af37;
  --green: #16a34a;
  --red: #ef233c;
  --orange: #f97316;
  --ink: #162033;
  --muted: #667085;
  --line: #d9e2ec;
  --panel: #ffffff;
  --bg: #f4f7fb;
  --soft-blue: #e9f2ff;
  --soft-green: #e8f8ee;
  --soft-red: #ffecee;
  --shadow: 0 10px 30px rgba(15, 35, 55, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
}

body:not(.logged-in) {
  overflow: hidden;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 20%, rgba(212, 175, 55, 0.22), transparent 28%),
    linear-gradient(135deg, #04101b 0%, #082338 52%, #020a12 100%);
}

.login-screen.hidden {
  display: none;
}

.login-brand-panel {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  border-right: 1px solid rgba(212, 175, 55, 0.32);
  color: #fff;
  padding: 40px;
  text-align: center;
}

.login-mark {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border: 2px solid #d4af37;
  border-radius: 14px;
  color: #d4af37;
  font-family: Georgia, serif;
  font-size: 48px;
  font-weight: 900;
}

.login-brand-panel h1 {
  color: #fff;
  font-family: Georgia, serif;
  font-size: 54px;
}

.login-brand-panel h1 span {
  color: #d4af37;
}

.login-brand-panel p {
  margin: 0;
  color: #dbe5ee;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-card {
  align-self: center;
  justify-self: center;
  display: grid;
  width: min(440px, calc(100vw - 40px));
  gap: 16px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.login-card h2 {
  margin-bottom: 4px;
  font-size: 30px;
}

.login-card span,
.login-card small {
  color: var(--muted);
}

.login-card label,
.user-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.login-card input,
.user-form input,
.user-form select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font-weight: 700;
}

.login-error {
  min-height: 18px;
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

button,
input,
select {
  font: inherit;
}

.payment-date-input,
.table-date-input {
  min-height: 30px;
  width: 142px;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 12px;
}

.table-text-input,
.table-select-input,
.table-money-input {
  min-height: 30px;
  width: 150px;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 12px;
}

.table-money-input {
  width: 110px;
  text-align: right;
}

.table-text-input.wide {
  width: 220px;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

