:root {
  --bg: #faf9f7;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --primary: #e85d04;
  --primary-hover: #dc2f02;
  --border: #e8e4df;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: var(--primary); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 480px; margin: 2rem auto; padding: 0 1rem; }
.auth-card--register { max-width: 560px; }

.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.logo { font-weight: 700; font-size: 1.25rem; text-decoration: none; color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  background: #eee;
  color: var(--text);
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-lg { padding: 0.85rem 1.5rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; border-color: var(--border); }

.hero { padding: 4rem 0; text-align: center; }
.hero h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 1rem; }
.lead { color: var(--muted); font-size: 1.125rem; max-width: 640px; margin: 0 auto 2rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  padding-bottom: 4rem;
}
.feature-grid article {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.site-footer { border-top: 1px solid var(--border); padding: 2rem 0; color: var(--muted); text-align: center; }

.nav-client {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.nav-client-login {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}
.nav-client-login:hover { color: var(--primary); }

.auth-breadcrumb { margin: 0 0 1rem; font-size: 0.9rem; }
.auth-breadcrumb a { color: var(--muted); text-decoration: none; }
.auth-breadcrumb a:hover { color: var(--primary); }

.footer-platform { margin-top: 0.5rem; font-size: 0.85rem; }
.footer-platform a { color: var(--muted); text-decoration: none; }
.footer-platform a:hover { color: var(--primary); }

.auth-page { min-height: 100vh; display: flex; align-items: center; }
.auth-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
}
.auth-footer { text-align: center; margin-top: 1rem; }

.form-stack { display: flex; flex-direction: column; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field input, .form-field select, .form-field textarea {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}

.password-field {
  position: relative;
  display: block;
  width: 100%;
}
.password-field input {
  width: 100%;
  padding-right: 2.75rem;
}
.password-toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  line-height: 0;
}
.password-toggle:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
}
.password-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.field-error { color: #c1121f; font-size: 0.875rem; }
.form-errors { background: #ffe5e5; padding: 0.75rem; border-radius: 8px; color: #9b2226; }
.muted { color: var(--muted); }
.help { color: var(--muted); font-size: 0.85rem; }

.form-consents {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.25rem;
}
.form-consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  cursor: pointer;
}
.form-consent input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.2rem 0 0;
  flex-shrink: 0;
  accent-color: var(--primary);
}
.form-consent-label {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text);
}
.form-consent-label a {
  color: var(--primary);
  text-decoration: underline;
}
.form-consent-label a:hover {
  color: var(--primary-hover);
}

.legal-page .legal-document {
  max-width: 760px;
  padding: 2rem 0 4rem;
}
.legal-document-body {
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.65;
}

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: #f3f1ed;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06);
}
.cookie-consent-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 0;
}
.cookie-consent-text {
  margin: 0;
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text);
}
.cookie-consent-text a {
  color: var(--primary);
  text-decoration: underline;
}
.cookie-consent-actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.65rem;
}
.cookie-consent-actions .btn-primary {
  background: #1a1a2e;
  border-color: #1a1a2e;
}
.cookie-consent-actions .btn-primary:hover {
  background: #2d2d44;
  border-color: #2d2d44;
}
.btn-outline {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: #ccc;
  background: #fafafa;
}
body.landing {
  padding-bottom: 0;
}
body.landing .cookie-consent {
  z-index: 250;
}
@media (max-width: 768px) {
  .cookie-consent-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-consent-actions {
    justify-content: flex-end;
  }
}
