/* Lugano Systems — shared styles */
:root {
  --ink: #0d1320;
  --surface: #151d2e;
  --line: #243047;
  --text: #e8ecf2;
  --muted: #8b97ab;
  --green: #2ecc8f;
  --green-dark: #1fa371;
  --amber: #e8a33d;
}

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

body {
  background: var(--ink);
  color: var(--text);
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
header {
  padding: 22px 28px 0;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
}
.wordmark {
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  color: var(--text);
  text-transform: uppercase;
}
.wordmark span { color: var(--green); }

/* Ticker line signature */
.ticker {
  margin-top: 14px;
  height: 14px;
  background:
    repeating-linear-gradient(90deg,
      var(--line) 0, var(--line) 1px,
      transparent 1px, transparent 28px);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.ticker::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 140px; height: 1px;
  background: var(--green);
}

/* Main */
main {
  flex: 1;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 28px;
}

h1 {
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-weight: 500;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 18px;
}
.lede { color: var(--muted); font-size: 1.05rem; max-width: 56ch; line-height: 1.65; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px;
  margin-top: 36px;
  max-width: 480px;
}

label {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 18px 0 6px;
}
input[type=text], input[type=password] {
  width: 100%;
  padding: 11px 12px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-size: 1rem;
}
input:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }

.btn {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 26px;
  background: var(--green);
  color: #07130d;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.btn:hover { background: var(--green-dark); text-decoration: none; }

.error {
  margin-top: 16px;
  padding: 10px 14px;
  border: 1px solid #b3473f;
  border-radius: 6px;
  color: #f0a8a2;
  font-size: 0.92rem;
}

/* Download row */
.dl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.dl-name { font-family: "IBM Plex Mono", monospace; font-size: 0.95rem; }
.dl-meta { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }

.note {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 60ch;
}

/* Footer */
footer {
  padding: 20px 28px 28px;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.8rem;
  font-family: "IBM Plex Mono", monospace;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Background image for the main landing page only */
body.landing-page {
    background-image: url('images/lugano.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* =========================================
   NEW: Landing Page Layout & Transparency
   ========================================= */

/* 1. Remove the stripes/line below the header */
body.landing-page .ticker {
    display: none;
}

/* 2. Remove the line above the copyright */
body.landing-page footer {
    border-top: none;
}

/* 3. Center the access box in the middle of the page */
body.landing-page main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: transparent; /* Removes the old dark overlay */
}

/* 4. Make the access box 80% transparent (20% opacity) */
body.landing-page .card {
    background: rgba(21, 29, 46, 0.2);   /* 80% transparent */
    border: 1px solid rgba(36, 48, 71, 0.2);
    text-align: center;
}

/* 5. Make the login button 50% transparent */
body.landing-page .btn {
    background: rgba(46, 204, 143, 0.5); /* 50% transparent */
    color: var(--text); /* White text so it's readable */
}

/* Make the button slightly more solid when hovered */
body.landing-page .btn:hover {
    background: rgba(46, 204, 143, 0.75);
    text-decoration: none;
}
