/* Via Carrera — simple, symmetric, Scandinavian */

:root {
  --bg: #ffffff;
  --ink: #000000;
  --ink-soft: #4a4a4a;
  --line: #d9d9d9;
  --accent: #000000;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.login-link {
  position: fixed;
  top: 28px;
  right: 32px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  z-index: 10;
  transition: opacity 0.15s ease;
}

.login-link:hover {
  opacity: 0.55;
}

.page {
  max-width: 620px;
  margin: 0 auto;
  padding: 120px 24px 100px;
  text-align: center;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  width: 148px;
  height: 148px;
  margin-bottom: 28px;
}

.motto {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.divider {
  width: 48px;
  margin: 56px auto;
  border: none;
  border-top: 1px solid var(--line);
}

.intro {
  text-align: left;
}

.intro p {
  margin: 0 0 20px;
  font-size: 16px;
  color: var(--ink);
}

.intro p:last-child {
  margin-bottom: 0;
}

.cars {
  margin-top: 56px;
}

.cars-button {
  display: inline-block;
  padding: 14px 36px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}

.cars-button:hover {
  background: var(--ink);
  color: var(--bg);
}

.contact h2 {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}

.contact a {
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.15s ease;
}

.contact a:hover {
  opacity: 0.55;
}

.socials {
  position: fixed;
  left: 32px;
  bottom: 28px;
  display: flex;
  gap: 16px;
}

.social-icon {
  color: var(--ink-soft);
  opacity: 0.55;
}

@media (max-width: 480px) {
  .page {
    padding: 90px 20px 90px;
  }
  .logo {
    width: 116px;
    height: 116px;
  }
  .socials {
    left: 20px;
    bottom: 20px;
  }
  .login-link {
    top: 20px;
    right: 20px;
  }
}

/* Login */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-box {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 320px;
  border: 1px solid var(--ink);
  padding: 40px 32px;
}

.login-box label {
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.login-box input {
  text-align: center;
  font-family: inherit;
  font-size: 15px;
  padding: 10px 0;
  margin-bottom: 24px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.login-box input:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

.login-box button {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.login-box button:hover {
  opacity: 0.8;
}

.login-error {
  font-size: 13px;
  color: #b00020;
  margin: -12px 0 20px;
}

/* Dashboard */
.dashboard-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  max-width: 720px;
}

.tile {
  width: 200px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.15s ease, color 0.15s ease;
}

.tile{ text-decoration:none; color:inherit; }
