/* ==========================================================================
   weeby.css — stili base condivisi per homepage, account, start
   Riusa palette delle landing esistenti.
   ========================================================================== */
:root {
  --color-accent: #eb5457;
  --color-accent-dark: #d4444a;
  --color-warm-bg: #f1e2cf;
  --color-white: #ffffff;
  --color-bg-soft: #f8f5f1;
  --color-text: #1a1a1a;
  --color-text-light: #555555;
  --color-text-muted: #888888;
  --color-border: #e0d6ca;
  --color-success: #059669;
  --color-error: #dc2626;

  --font-heading: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-logo: 'More Sugar', cursive;

  --header-height: 64px;
  --container-max: 1120px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; border: none; background: none; cursor: pointer; }
input, textarea { font: inherit; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; color: var(--color-text); }
h1 { font-size: clamp(36px, 6vw, 56px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 24px; }

/* ---- Header globale ---- */
.site-header {
  height: var(--header-height);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header__logo {
  font-family: var(--font-logo);
  font-size: 28px;
  color: var(--color-accent);
  font-weight: normal;
}
.site-header__nav { display: flex; gap: 24px; align-items: center; }
.site-header__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-light);
  transition: color var(--transition);
}
.site-header__nav a:hover { color: var(--color-text); }

/* ---- Bottoni ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1.2;
}
.btn--primary { background: var(--color-accent); color: var(--color-white); }
.btn--primary:hover { background: var(--color-accent-dark); }
.btn--primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--ghost { background: transparent; border-color: var(--color-border); color: var(--color-text); }
.btn--ghost:hover { background: var(--color-bg-soft); border-color: var(--color-text-muted); }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---- Form fields ---- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.field__input {
  padding: 12px 14px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color var(--transition);
  width: 100%;
}
.field__input:focus { outline: none; border-color: var(--color-accent); }
.field__hint { font-size: 13px; color: var(--color-text-muted); }

/* ---- Status messages ---- */
.weeby-status {
  font-size: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin: 12px 0;
  min-height: 20px;
}
.weeby-status:empty { display: none; }
.weeby-status--success { background: #ecfdf5; color: var(--color-success); border: 1px solid #a7f3d0; }
.weeby-status--error { background: #fef2f2; color: var(--color-error); border: 1px solid #fecaca; }
.weeby-status--info { background: var(--color-bg-soft); color: var(--color-text-light); border: 1px solid var(--color-border); }

/* ---- Card centrata (login, verify) ---- */
.card-center {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: var(--color-bg-soft);
}
.card {
  width: 100%;
  max-width: 440px;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}
.card__title { font-size: 28px; margin-bottom: 8px; }
.card__subtitle { font-size: 15px; color: var(--color-text-light); margin-bottom: 24px; }

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
