:root {
  --navy: #062b63;
  --blue: #0b5cab;
  --bg: #f4f6f8;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #d1d5db;
  --card: #ffffff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.document-shell {
    padding: 12px 16px 20px 16px;
}

.document-frame-wrap {
    margin-top: 18px;
}

.document-frame {
    width: 100%;
    height: calc(100vh - 110px);
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: white;
}
.page-shell {
  min-height: 100vh;
}

.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
}

.topbar-right {
  display: flex;
  gap: 14px;
  align-items: center;
  color: #4b5563;
}

.center-wrap {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 560px;
    background: var(--card);
    border-radius: 28px;
    padding: 34px 40px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
}

.logo-block {
    text-align: center;
    margin-bottom: 20px;
}

.brand-mark {
    width: 92px;
    height: 92px;
    border-radius: 20px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, #0b5cab, #062b63);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 800;
}

    .brand-mark.admin {
        background: linear-gradient(135deg, #9d174d, #7f1d1d);
    }

.logo-block h1 {
    margin: 0 0 6px;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: var(--navy);
}

.logo-block p {
    margin: 0;
    color: #5b6777;
    font-size: 16px;
    font-weight: 600;
}

.brand-logo-panel {
    width: 158px;
    min-height: 74px;
    margin: 0 auto 12px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #d9e2ec;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
}

.brand-logo {
    max-width: 128px;
    max-height: 42px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}
label {
  display: block;
  margin: 20px 0 8px;
  font-weight: 700;
  color: #243b63;
}

input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 16px;
}

input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11, 92, 171, 0.12);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  padding: 15px 18px;
  font-size: 18px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.primary-button {
  width: 100%;
  margin-top: 22px;
  background: var(--navy);
  color: white;
}

.secondary-button {
  background: white;
  color: var(--navy);
  border: 1px solid var(--line);
}

.inline-button {
  width: auto;
  min-width: 220px;
}

.link-button {
  background: none;
  border: none;
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
}

.helper-text {
  margin-top: 20px;
  color: var(--muted);
  text-align: center;
  line-height: 1.55;
}

.login-footer-link {
  margin-top: 18px;
  text-align: center;
}

.login-footer-link a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
}

.error-list, .field-error {
  color: #b91c1c;
  margin-top: 10px;
}

.dashboard-wrap {
  padding: 28px;
}

.simple-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 20px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.grid-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.grid-table th, .grid-table td {
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}

.grid-table thead {
  background: #f8fafc;
}

@media (max-width: 640px) {
  .login-card {
    padding: 26px 20px;
  }

  .action-row {
    flex-direction: column;
  }

  .inline-button {
    width: 100%;
  }
}
