:root {
  --night: #0f2a35;
  --teal: #177e89;
  --sand: #f5eedf;
  --mist: #dce8e6;
  --leaf: #2f6f51;
  --sun: #f4b860;
  --coral: #da6f4b;
  --text: #122027;
  --muted: #5d6f75;
  --white: #ffffff;
  --shadow: 0 30px 70px rgba(15, 42, 53, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(244, 184, 96, 0.28), transparent 34%),
    radial-gradient(circle at bottom right, rgba(23, 126, 137, 0.2), transparent 30%),
    linear-gradient(180deg, #f7f2e8 0%, #eef4f3 100%);
}

a {
  color: inherit;
}

.page-shell {
  padding: 32px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}

.intro {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.login-layout,
.dashboard-layout {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.login-layout {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 4vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.trip-grid {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.trip-card,
.panel-card {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.trip-card {
  padding: 24px;
}

.trip-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trip-badge {
  background: rgba(218, 111, 75, 0.12);
  color: var(--coral);
}

.trip-card h2,
.panel-card h2 {
  margin: 16px 0 12px;
  font-size: 1.5rem;
}

.trip-card p,
.panel-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.login-panel {
  display: flex;
  justify-content: center;
  width: 100%;
}

.panel-card {
  width: min(430px, 100%);
  padding: 30px;
}

.panel-head {
  margin-bottom: 24px;
}

.alert-error {
  margin-bottom: 18px;
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(218, 111, 75, 0.14);
  color: #8b2f18;
  font-weight: 600;
}

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

.field {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.field span {
  font-size: 0.96rem;
}

.field input {
  width: 100%;
  border: 1px solid rgba(18, 32, 39, 0.12);
  border-radius: 16px;
  padding: 15px 16px;
  font: inherit;
  background: rgba(255, 255, 255, 0.95);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.field input:focus {
  outline: none;
  border-color: rgba(23, 126, 137, 0.55);
  box-shadow: 0 0 0 4px rgba(23, 126, 137, 0.12);
  transform: translateY(-1px);
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 16px;
  padding: 14px 18px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  border: none;
  background: linear-gradient(135deg, var(--teal) 0%, var(--leaf) 100%);
  color: var(--white);
  box-shadow: 0 18px 28px rgba(23, 126, 137, 0.22);
  cursor: pointer;
}

.ghost-button {
  border: 1px solid rgba(18, 32, 39, 0.12);
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.dashboard-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 8px;
}

.trip-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.trip-card {
  display: grid;
  gap: 14px;
}

@media (max-width: 900px) {
  .page-shell {
    padding: 20px;
  }

  .login-layout {
    min-height: auto;
  }

  .dashboard-hero {
    flex-direction: column;
  }
}
