/* Valuewerk.com — shared styles */

:root {
  --ink: #111111;
  --muted: #6b6b6b;
  --line: #d9d9d9;
  --field: #ececec;
  --error: #b3261e;
  --page-max: 1366px;
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background-color: #ffffff;
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 36px 76px 24px;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-block;
  line-height: 0;
}

.logo img {
  width: 233px;
  max-width: 55vw;
  height: auto;
}

.nav-link {
  color: var(--ink);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  padding-bottom: 4px;
}

.nav-link:hover,
.nav-link:focus-visible {
  text-decoration: underline;
}

/* ---------- quote ---------- */

.quote {
  margin: 14px 0 20px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* ---------- hero ---------- */

.hero {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- footer ---------- */

.site-footer {
  flex-shrink: 0;
  text-align: center;
  padding: 26px 24px 30px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- login form ---------- */

.login-wrap {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
}

.login-form {
  width: 100%;
  max-width: 420px;
}

.field {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.field label {
  flex: 0 0 110px;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink);
}

.field input {
  flex: 1 1 auto;
  min-width: 0;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 20px;
  outline: none;
}

.field input:focus {
  border-color: #9a9a9a;
  background: #f5f5f5;
}

.actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.btn {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 12px 34px;
  cursor: pointer;
}

.btn:hover {
  background: #333333;
}

.form-error {
  margin-top: 18px;
  min-height: 1.4em;
  font-size: 0.95rem;
  color: var(--error);
  text-align: center;
}

.form-error[hidden] {
  display: none;
}

/* ---------- small screens ---------- */

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

@media (max-width: 600px) {
  .page {
    padding: 24px 16px 16px;
  }

  .field {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .field label {
    flex: none;
  }

  .actions {
    justify-content: stretch;
  }

  .btn {
    width: 100%;
  }
}
