* {
  box-sizing: border-box;
}

:root {
  --blue: #1677ff;
  --blue-dark: #075fd8;
  --navy: #0b1f35;
  --background: #f4f7fb;
  --white: #ffffff;
  --text: #17202a;
  --muted: #667085;
  --border: #d8e0eb;
  --success: #15803d;
  --danger: #c62828;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--background);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.topbar {
  height: 72px;
  padding: 0 5%;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: var(--blue);
  font-size: 29px;
  font-weight: 900;
  text-decoration: none;
}

.top-link {
  color: var(--blue-dark);
  font-weight: 800;
  text-decoration: none;
}

.home {
  width: min(1180px, 92%);
  margin: auto;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: center;
  gap: 55px;
  padding: 55px 0;
}

.eyebrow {
  color: var(--blue);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.hero h1 {
  margin: 12px 0 20px;
  font-size: clamp(44px, 6vw, 74px);
  line-height: 1;
}

.hero-copy > p {
  max-width: 680px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

.home-buttons {
  margin: 30px 0 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  min-width: 180px;
  padding: 15px 22px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  font-size: 17px;
  font-weight: 900;
}

.primary {
  background: var(--blue);
  color: var(--white);
}

.outline {
  color: var(--blue);
  background: var(--white);
  border: 2px solid var(--blue);
}

.register-link {
  color: var(--blue-dark);
  font-weight: 900;
  text-decoration: none;
}

.hero-panel {
  padding: 45px 30px;
  border-radius: 28px;
  background: var(--navy);
  color: var(--white);
  text-align: center;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.18);
}

.car {
  font-size: 88px;
}

.hero-panel h2 {
  margin: 15px 0 8px;
  font-size: 38px;
}

.hero-panel p {
  color: #dbe7f5;
  font-size: 18px;
}

.auth-page {
  min-height: 100vh;
  padding: 30px 15px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: min(460px, 100%);
  padding: 32px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.25);
}

.auth-brand {
  margin: 0;
  color: var(--blue);
  text-align: center;
  font-size: 34px;
  font-weight: 900;
}

.auth-card h2 {
  margin-bottom: 8px;
  text-align: center;
}

.auth-subtitle {
  margin-bottom: 25px;
  text-align: center;
  color: var(--muted);
}

label {
  display: block;
  margin-top: 15px;
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 7px;
  padding: 12px;
  border: 1px solid #c7d2df;
  border-radius: 8px;
  background: var(--white);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(22, 119, 255, 0.18);
  border-color: var(--blue);
}

.full-button {
  width: 100%;
  margin-top: 22px;
  padding: 14px;
  border: 0;
  border-radius: 9px;
  background: var(--blue);
  color: var(--white);
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}

.full-button:hover {
  background: var(--blue-dark);
}

.full-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.alt-button {
  background: #edf4ff;
  color: var(--blue-dark);
}

.alt-button:hover {
  background: #dceaff;
}

.auth-links {
  margin-top: 22px;
  text-align: center;
  line-height: 2;
}

.auth-links a {
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: 800;
}

.message {
  min-height: 24px;
  margin-top: 17px;
  text-align: center;
  font-weight: 800;
  line-height: 1.4;
}

.message.error {
  color: var(--danger);
}

.message.success {
  color: var(--success);
}

.registration-page {
  min-height: 100vh;
  padding: 35px 15px;
}

.registration-wrap {
  width: min(850px, 100%);
  margin: auto;
}

.registration-header {
  margin-bottom: 25px;
  text-align: center;
}

.registration-header h1 {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 38px;
}

.role-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.role-button {
  padding: 15px;
  border: 2px solid var(--blue);
  border-radius: 10px;
  background: var(--white);
  color: var(--blue);
  font-weight: 900;
  cursor: pointer;
}

.role-button.active {
  background: var(--blue);
  color: var(--white);
}

.form-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 8px 30px rgba(16, 24, 40, 0.07);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 18px;
}

.section-title {
  margin-top: 30px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--blue-dark);
}

.info-box {
  margin-top: 20px;
  padding: 14px;
  border: 1px solid #eebd5c;
  border-radius: 10px;
  background: #fff8e5;
  line-height: 1.5;
}

.hidden {
  display: none !important;
}

.dashboard-page {
  min-height: 100vh;
}

.dashboard-header {
  padding: 16px 4%;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-brand {
  color: var(--blue);
  font-size: 25px;
  font-weight: 900;
}

.logout-button {
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  background: #edf4ff;
  color: var(--blue-dark);
  font-weight: 900;
  cursor: pointer;
}

.dashboard-main {
  width: min(1100px, 92%);
  margin: 35px auto;
}

.welcome-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--white);
}

.status-pill {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eaf8ef;
  color: #13733d;
  font-size: 13px;
  font-weight: 900;
}

.dashboard-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.dashboard-card {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
}

.dashboard-card h3 {
  margin-top: 0;
  color: var(--blue-dark);
}

.dashboard-card p {
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 760px) {

  .hero,
  .form-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .role-switch {
    grid-template-columns: 1fr;
  }

  .hero {
    text-align: center;
  }

  .home-buttons {
    justify-content: center;
  }

  .hero-copy > p {
    margin-left: auto;
    margin-right: auto;
  }

  .form-card {
    padding: 20px;
  }
}