:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --bg-2: #101014;
  --surface: #15151b;
  --surface-2: #1c1c24;
  --card: #1f1f28;
  --border: #2a2a35;
  --border-strong: #3a3a48;
  --text: #f5f5f5;
  --text-dim: #b8b8c4;
  --text-mute: #7a7a86;
  --accent: #ff5722;
  --accent-2: #ff7a45;
  --success: #25d366;
  --danger: #ff8068;
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.72);
  --shadow-glow: 0 10px 40px -10px rgba(255, 87, 34, 0.38);
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background-image:
    linear-gradient(180deg, rgba(10, 10, 10, 0.64), rgba(10, 10, 10, 0.94)),
    url("https://ironcustommotors.com/photos/hero-1600.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(0.82) contrast(1.06) brightness(0.82);
}

body::after {
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 78%);
}

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

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.myride-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 0 48px;
}

body[data-myride-view="auth"] .myride-shell {
  display: grid;
  place-items: center;
  width: min(100% - 28px, 520px);
  padding: 24px 0;
}

body[data-myride-view="auth"] .myride-header {
  display: none;
}

.myride-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: 14px 18px;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 15, 19, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.brand,
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 50px;
  height: 50px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.brand-mark img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-family: "Saira", sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand small,
.muted {
  color: var(--text-dim);
}

.auth-layout {
  width: 100%;
}

.auth-card,
.profile-strip,
.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(21, 21, 27, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-card {
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 24px;
}

.auth-brand {
  width: 100%;
  justify-content: center;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.auth-brand h1 {
  margin: 0;
  font-family: "Saira Condensed", sans-serif;
  font-size: 44px;
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: "Saira", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--text);
  font-family: "Saira Condensed", sans-serif;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  font-size: 25px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.auth-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-dim);
  font-family: "Saira", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.auth-tabs button.active {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.field-grid {
  display: grid;
  gap: 12px;
}

.field-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--text-mute);
  font-family: "Saira", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(10, 10, 10, 0.72);
  color: var(--text);
  padding: 12px 14px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(12, 12, 16, 0.94);
  box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.12);
}

.field select {
  color-scheme: dark;
}

.checks {
  display: grid;
  gap: 10px;
  margin: 8px 0 18px;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.35;
}

.checks label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.checks input {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: var(--accent);
}

.button {
  min-height: 46px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 12px 20px;
  background: transparent;
  color: var(--text);
  font-family: "Saira", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), background 0.22s var(--ease), color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.button:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.button.primary {
  width: 100%;
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.button.primary:hover {
  background: var(--accent-2);
  color: #fff;
}

.button.ghost {
  width: auto;
  background: rgba(255, 255, 255, 0.03);
}

.form-message {
  margin: 0 0 14px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 128, 104, 0.5);
  border-radius: 10px;
  background: rgba(255, 128, 104, 0.08);
  color: var(--danger);
  font-size: 13px;
  line-height: 1.4;
}

.form-message[data-type="success"] {
  border-color: rgba(37, 211, 102, 0.45);
  background: rgba(37, 211, 102, 0.08);
  color: var(--success);
}

.dashboard {
  display: grid;
  gap: 18px;
}

.profile-strip {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  padding: 24px;
}

.profile-strip h1 {
  font-size: 40px;
}

.profile-number {
  min-width: 160px;
  text-align: center;
  border: 1px solid rgba(255, 87, 34, 0.38);
  border-radius: 999px;
  background: rgba(255, 87, 34, 0.08);
  padding: 13px 18px;
  color: var(--accent);
  font-family: "Saira", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 18px;
}

.panel {
  padding: 22px;
}

.panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.motorcycle-list {
  display: grid;
  gap: 10px;
}

.motorcycle-card,
.empty {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  padding: 15px;
}

.motorcycle-card strong,
.motorcycle-card span,
.motorcycle-card small {
  display: block;
}

.motorcycle-card strong {
  color: var(--text);
  font-family: "Saira", sans-serif;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

.motorcycle-card span,
.motorcycle-card small,
.empty {
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .myride-shell {
    width: min(100% - 24px, 760px);
  }

  body[data-myride-view="auth"] .myride-shell {
    width: min(100% - 20px, 520px);
  }

  .dashboard-grid,
  .field-grid.two {
    grid-template-columns: 1fr;
  }

  .auth-card {
    max-height: calc(100vh - 20px);
    padding: 18px;
  }

  .auth-brand {
    justify-content: flex-start;
  }

  .auth-brand h1 {
    font-size: 38px;
  }

  .profile-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .myride-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
