
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;

    --background-nav: #1a1714;
    --background-header-image: #201e18;
    --background: #f5f2ee;

    --background-header-border: #3b382b;

    --text-color: #1a1714;

    --menuitem-color: #a09a92;
    --menuitem-hover: #f5f2ee;

    --form-background: #fff;
    --form-border: #d8d3cc;
    --label-color: #8a8178;
    --input-background: #faf9f7;
    --submit-hover: #2d2925;

    --highlight: #e8c97e;
    --highlight-shadow: #e8c97e34;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--background);
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}

/* ── Nav ── */
#menu {
    display: flex;
    align-items: center;
    padding: 0 2rem;
    height: 52px;
    background: var(--background-nav);
}

.menu-item {
    font-size: 13px;
    font-weight: 500;
    color: var(--menuitem-color);
    text-decoration: none;
    padding: 0 14px;
    letter-spacing: 0.03em;
    transition: color 0.15s;
}

.menu-item:first-child { padding-left: 0; }
.menu-item:hover { color: var(--menuitem-hover); }
.menu-item.highlight { color: var(--highlight); }

.spacer { flex: 1; }

/* ── Content ── */
#content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    flex: 1;
}

h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 42px;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

/* ── Form card ── */
form:not(.plain) {
    background: var(--form-background);
    border: 0.5px solid var(--form-border);
    border-radius: 12px;
    padding: 2rem 2.25rem;
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
}

form:not(.plain) label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--label-color);
    margin-bottom: 6px;
    margin-top: 16px;
    display: block;
}

form:not(.plain) label:first-of-type { margin-top: 0; }

form:not(.plain) input:is([type="text"], [type="password"]) {
    width: 100%;
    height: 40px;
    border: 0.5px solid var(--form-border);
    border-radius: 6px;
    padding: 0 12px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    color: var(--text-color);
    background: var(--input-background);
    transition: border-color 0.15s;
    outline: none;
}

form:not(.plain) input:is([type="text"], [type="password"]):focus {
    border-color: var(--highlight);
    background: var(--background);
    box-shadow: 0 0 0 3px var(--highlight-shadow);
}

form:not(.plain) input[type="submit"] {
    margin-top: 24px;
    width: 100%;
    height: 42px;
    background: var(--text-color);
    color: var(--input-background);
    border: none;
    border-radius: 6px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.15s;
}

form:not(.plain) input[type="submit"]:hover { background: var(--submit-hover); }


[data-tooltip]::before {
  content: attr(data-tooltip);
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 13px;

  /* Hidden by default */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

[data-tooltip]:hover::before {
  opacity: 1;
}

.banner { width:100%; height:auto; aspect-ratio:2000/100; background:var(--background-header-image); border-bottom:1px solid var(--background-header-border); }
.logout { background:none; border:0; cursor:pointer; height:52px; font:inherit; }
.tick { display:contents; }
.tick input[type="submit"] { width:max-content; padding:0 0.5rem; margin:0; }
