@import url('https://fonts.googleapis.com/css2?family=Lora:wght@500;600&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink: #12181f;
  --ink-soft: #1b232c;
  --parchment: #ede6d6;
  --parchment-dim: #b9b2a1;
  --brass: #c89b3c;
  --brass-dim: #8a6f34;
  --error: #c85c3c;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--parchment);
  font-family: 'Inter', system-ui, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

/* Faint tick marks along the top and bottom of the viewport, like the rim of a clock face */
body::before,
body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--brass-dim) 0px,
    var(--brass-dim) 1px,
    transparent 1px,
    transparent 48px
  );
  opacity: 0.4;
}
body::before { top: 0; }
body::after { bottom: 0; }

.panel {
  width: 100%;
  max-width: 380px;
  border: 1px solid var(--brass-dim);
  background: var(--ink-soft);
  padding: 40px 36px;
}

.panel h1 {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 26px;
  margin: 0 0 6px;
  color: var(--parchment);
}

.panel p.sub {
  margin: 0 0 28px;
  color: var(--parchment-dim);
  font-size: 14px;
  line-height: 1.5;
}

label {
  display: block;
  font-size: 13px;
  color: var(--parchment-dim);
  margin-bottom: 6px;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 20px;
  background: var(--ink);
  border: 1px solid var(--brass-dim);
  color: var(--parchment);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
}

input[type="text"]:focus,
input[type="password"]:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
}

button, .btn {
  width: 100%;
  padding: 11px 12px;
  background: var(--brass);
  color: var(--ink);
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

button:hover, .btn:hover {
  background: #dcae52;
}

button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--parchment);
  outline-offset: 2px;
}

.error {
  background: rgba(200, 92, 60, 0.12);
  border: 1px solid var(--error);
  color: #e2a58f;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 20px;
}

.hint {
  margin-top: 20px;
  font-size: 12px;
  color: var(--parchment-dim);
  line-height: 1.6;
  border-top: 1px solid var(--brass-dim);
  padding-top: 16px;
}

/* Clock page */
.clock-wrap {
  text-align: center;
}

.clock-wrap .greeting {
  color: var(--parchment-dim);
  font-size: 14px;
  margin-bottom: 18px;
}

.clock-wrap .greeting strong {
  color: var(--parchment);
}

.time {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: clamp(48px, 11vw, 88px);
  letter-spacing: 2px;
  line-height: 1;
  margin: 0;
}

.date {
  margin-top: 12px;
  color: var(--parchment-dim);
  font-size: 16px;
}

.signout {
  display: inline-block;
  margin-top: 32px;
  width: auto;
  padding: 9px 22px;
  background: transparent;
  border: 1px solid var(--brass-dim);
  color: var(--parchment);
  font-size: 13px;
  text-decoration: none;
}

.signout:hover {
  background: var(--ink);
  border-color: var(--brass);
}
