:root {
  --gold: #9b7640;
  --gold-hover: #b08c52;
  --card-bg: #181928;
  --input-bg: #23243a;
  --text: #f2f2f2;
  --border: #2e2f45;
}

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

body {
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  min-height: 100vh;
  background: #12111e url("temp-car-bg.png") center / cover no-repeat fixed;
}

/* Dark overlay over the background image (~80%) */
.overlay {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(24, 25, 40, 0.8); /* #181928 at ~80% */
}

/* Floating card: 30% of page width on desktop */
.card {
  width: 30%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  max-width: 320px;
  height: auto;
  margin-bottom: 2rem;
}

.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Inputs and button share the same full width */
.login-form input,
.btn-login {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  border: 1px solid var(--border);
}

/* Icon sits inside the field; input gets extra left padding */
.input-group {
  position: relative;
  width: 100%;
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: var(--gold);
  pointer-events: none;
}

.input-group input {
  padding-left: 2.6rem;
}

.login-form input {
  background: var(--input-bg);
  color: var(--text);
}

.login-form input::placeholder {
  color: #9a9a9a;
}

.login-form input:focus {
  outline: none;
  border-color: var(--gold);
}

.btn-login {
  margin-top: 0.5rem;
  background: var(--gold);
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-login:hover {
  background: var(--gold-hover);
}

.tagline {
  margin-top: 1rem;
  text-align: center;
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1.2;
}

.invitation {
  margin-top: 0.5rem;
  text-align: center;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.05em;
}

/* Visually hidden labels (kept for accessibility) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Tablet: card is 60% of screen width */
@media (max-width: 1024px) {
  .card {
    width: 60%;
  }
}

/* Full width card on mobile */
@media (max-width: 768px) {
  .card {
    width: 100%;
  }
}
