:root {
    --blue: #0c2340;
    --bg: #f5f6fb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: #222;
}

/* ------------------------------------------
   HEADER – show logo band nicely
   ------------------------------------------ */
 ------------------------------------------
   HEADER – framed, full image visible
   ------------------------------------------ */
.header-banner {
    width: 100%;
    background: #ffffff;
    padding: 0;
    margin: 0;
    text-align: center;
}

.header-banner img {
    width: 100%;
    height: auto;              /* keep perfect proportions */
    max-height: 260px;         /* control how tall it appears */
    object-fit: contain;       /* NEVER crop anything */
    display: block;
    margin: 0 auto;
}

/* NAVIGATION BAR */
.navbar {
    background: var(--blue);
    color: #fff;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .9rem;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    margin-left: 12px;
}

.container {
    max-width: 1100px;
    margin: 18px auto 40px;
    padding: 0 16px;
}

/* LOGIN CARD */
.login-card {
    max-width: 420px;
    margin: 20px auto 40px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

h1 { margin-top: 0; }
h2 { margin-top: 24px; margin-bottom: 10px; }

.grid {
    display: grid;
    gap: 10px 16px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

label {
    display: flex;
    flex-direction: column;
    font-size: .9rem;
}

input, select, textarea {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ccd0dd;
    font: inherit;
}

textarea {
    min-height: 60px;
}

fieldset {
    border: 1px solid #dde;
    border-radius: 8px;
    padding: 10px 12px 12px;
    margin-bottom: 10px;
}

legend {
    padding: 0 6px;
    font-weight: 600;
    font-size: .95rem;
}

.actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
}

button {
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    background: var(--blue);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

button.secondary {
    background: #e4e6f0;
    color: #222;
}

.notice {
    background: #fff8e5;
    border: 1px solid #f1d08a;
    border-radius: 8px;
    padding: 10px;
    font-size: .85rem;
    margin-top: 10px;
}

/* TABLE STYLING */
.table-like {
    border-collapse: collapse;
    width: 100%;
}

.table-like th,
.table-like td {
    border: 1px solid #dde;
    padding: 6px 8px;
    font-size: .85rem;
}

/* SIGNATURE BOX */
.sig-box {
    background: #f7f7fb;
    border: 1px dashed #c6cadb;
    border-radius: 10px;
    padding: 10px;
}

.sig-box canvas {
    background: #fff;
    border-radius: 6px;
    border: 1px solid #ccc;
    max-width: 100%;
}
