:root {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: #172033;
  background: #f3f6fa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: #f3f6fa;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(100%, 480px);
  min-height: 100dvh;
  margin: 0 auto;
  padding:
    max(24px, env(safe-area-inset-top))
    18px
    max(24px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
}

.login-card,
.vehicle-card {
  width: 100%;
  padding: 28px 22px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow:
    0 14px 45px
    rgba(32, 44, 68, 0.10);
}

.brand {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5c667a;
}

h1 {
  margin: 0;
  font-size: clamp(1.9rem, 8vw, 2.45rem);
  line-height: 1.05;
}

.subtitle {
  margin: 10px 0 0;
  color: #657087;
}

.login-form {
  display: grid;
  gap: 10px;
}

.login-form label {
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 650;
}

input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid #ccd3df;
  border-radius: 14px;
  background: #ffffff;
  color: #172033;
}

input:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(46, 100, 220, 0.26);
  outline-offset: 2px;
}

.password-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.primary,
.secondary {
  min-height: 52px;
  border-radius: 14px;
  font-weight: 700;
}

.primary {
  margin-top: 16px;
  border: 0;
  background: #244fc5;
  color: #ffffff;
}

.secondary {
  border: 1px solid #c7ceda;
  background: #ffffff;
  color: #263349;
}

.compact {
  min-height: 52px;
  padding: 0 14px;
}

button:disabled {
  cursor: default;
  opacity: 0.55;
}

.notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff3f1;
  color: #9f2f24;
  font-size: 0.92rem;
}

.vehicle-info {
  display: grid;
  gap: 12px;
}

.vehicle-info > div {
  padding: 16px;
  border-radius: 14px;
  background: #f5f7fb;
}

.label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #69748a;
}

.vehicle-info strong {
  overflow-wrap: anywhere;
}

.connected {
  margin: 20px 0;
  font-weight: 700;
  color: #317246;
}

[hidden] {
  display: none !important;
}

@media (max-width: 380px) {
  .app-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .login-card,
  .vehicle-card {
    padding: 24px 18px;
  }
}
