/**
 * TP Logistics — public Drupal theme.
 * Design tokens mirror tp-logistics-prototype/app/globals.css
 */
:root {
  --tp-background: #f8fafc;
  --tp-foreground: #0f172a;
  --tp-navy: #0b3d5c;
  --tp-navy-dark: #072a40;
  --tp-amber: #e85d04;
  --tp-amber-light: #f97316;
  --tp-surface: #ffffff;
  --tp-muted: #64748b;
  --tp-border: #e2e8f0;
  --tp-radius-xl: 2rem;
  --tp-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body.tp-logistics-theme,
body {
  margin: 0;
  min-height: 100vh;
  background: var(--tp-background);
  color: var(--tp-foreground);
  font-family: var(--tp-font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.tp-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.tp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

.tp-header__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tp-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tp-brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--tp-navy);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
}

.tp-brand__text {
  display: none;
}

@media (min-width: 640px) {
  .tp-brand__text {
    display: block;
  }
}

.tp-brand__name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tp-navy);
}

.tp-brand__tagline {
  display: block;
  font-size: 0.75rem;
  color: var(--tp-muted);
}

.tp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: 0.2s ease;
  cursor: pointer;
  border: none;
}

.tp-btn--ghost {
  border: 1px solid rgba(11, 61, 92, 0.15);
  background: #fff;
  color: var(--tp-navy);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.tp-btn--ghost:hover {
  border-color: rgba(232, 93, 4, 0.4);
  color: var(--tp-amber);
}

.form-submit,
.button--primary {
  border-radius: 9999px;
  border: none;
  background: var(--tp-amber);
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.form-submit:hover,
.button--primary:hover {
  background: var(--tp-amber-light);
}

.tp-main {
  flex: 1;
  padding: 2rem 1rem 3rem;
}

.tp-main__content {
  max-width: 48rem;
  margin: 0 auto;
}

.tp-main--auth {
  padding: 2rem 1rem 3rem;
}

.tp-auth {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .tp-auth {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: stretch;
  }
}

.tp-auth__side {
  border-radius: var(--tp-radius-xl);
  background: var(--tp-navy);
  color: #fff;
  padding: 2rem;
}

@media (min-width: 640px) {
  .tp-auth__side {
    padding: 2.5rem;
  }
}

.tp-auth__eyebrow {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tp-amber);
}

.tp-auth__title {
  margin: 0.75rem 0 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
}

.tp-auth__lead {
  margin: 1rem 0 0;
  color: #cbd5e1;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.tp-auth__meta {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.tp-auth__meta li + li {
  margin-top: 1.25rem;
}

.tp-auth__meta-label {
  display: block;
  font-size: 0.875rem;
  color: #94a3b8;
}

.tp-auth__meta a,
.tp-auth__meta span {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.tp-auth__meta a:hover {
  color: var(--tp-amber);
}

.tp-auth__card {
  border-radius: var(--tp-radius-xl);
  border: 1px solid var(--tp-border);
  background: var(--tp-surface);
  padding: 2rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

@media (min-width: 640px) {
  .tp-auth__card {
    padding: 2.5rem;
  }
}

.tp-form,
.tp-login-form {
  margin: 0;
}

.tp-form .form-item,
.tp-login-form .form-item {
  margin: 0 0 1rem;
}

.tp-form label,
.tp-login-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
}

.tp-form input[type="text"],
.tp-form input[type="password"],
.tp-form input[type="email"],
.tp-login-form input[type="text"],
.tp-login-form input[type="password"],
.tp-login-form input[type="email"] {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--tp-border);
  background: #fff;
  padding: 0.75rem 1rem;
  font: inherit;
  color: var(--tp-foreground);
  outline: none;
  transition: box-shadow 0.2s ease;
}

.tp-form input:focus,
.tp-login-form input:focus {
  box-shadow: 0 0 0 2px rgba(232, 93, 4, 0.25);
}

.tp-form .form-actions,
.tp-login-form .form-actions {
  margin-top: 1.5rem;
}

.path-user .page-title,
.tp-auth__card > h1 {
  display: none;
}

.messages {
  max-width: 72rem;
  margin: 0 auto 1rem;
  padding: 0 1rem;
}

.messages--error {
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.messages--status {
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.tp-footer {
  border-top: 1px solid var(--tp-border);
  background: var(--tp-navy-dark);
  color: #cbd5e1;
}

.tp-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.tp-footer__link:hover {
  color: #fff;
}

.tp-logistics-theme .visually-hidden {
  position: absolute !important;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
}

.tp-auth__card .item-list,
.tp-auth__card ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.tp-auth__card .item-list a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--tp-amber);
}

.tp-auth__card .item-list a:hover {
  color: var(--tp-amber-light);
}
