/* =========================
   4DAYWEEK / CONSULTING THEME
   ========================= */

/* (Opzionale) Font moderno. Se preferisci, rimuovi e usa system font. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root{
  --bg: #0b0f19;            /* sfondo scuro “premium” */
  --bg-2: #0f1629;          /* variante */
  --card: rgba(255,255,255,.06);
  --card-border: rgba(255,255,255,.12);

  --text: rgba(255,255,255,.86);
  --muted: rgba(255,255,255,.62);

  --accent: #ff5a3d;        /* accento caldo */
  --accent-2: #ff8a00;      /* accento secondario */
  --ok: #22c55e;
  --danger: #ef4444;

  --radius: 18px;
  --radius-sm: 12px;

  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --shadow-soft: 0 10px 30px rgba(0,0,0,.28);

  --maxw: 1180px;
}

/* Reset minimo */
*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 15% 10%, rgba(255,90,61,.18), transparent 65%),
    radial-gradient(900px 600px at 85% 20%, rgba(255,138,0,.14), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

/* Link */
a{ color: var(--text); text-decoration: none; }
a:hover{ color: white; }

/* Layout base ereditato dal tuo template */
#container{
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.content{
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 18px;
}

/* Header/topbar presenti nel layout: li rendiamo “puliti” */
#supertop{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(10, 14, 25, .55);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

#menutop, #menurtop{
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Area contenuti */
#contents{
  flex: 1;
  padding: 36px 0 54px;
}

/* Footer */
#footer{
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(10, 14, 25, .55);
  backdrop-filter: blur(10px);
}
#footer .content{
  padding-top: 22px;
  padding-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

/* Utility */
.text-center{ text-align: center; }
.muted{ color: var(--muted); }
.mt-8{ margin-top: 8px; }
.mt-12{ margin-top: 12px; }
.mt-16{ margin-top: 16px; }
.mt-20{ margin-top: 20px; }
.mt-24{ margin-top: 24px; }

.grid{
  display: grid;
  gap: 18px;
}
@media (min-width: 900px){
  .grid-2{ grid-template-columns: 1fr 1fr; }
}

/* Card / box */
.card{
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.card-body{ padding: 22px; }
.card-title{
  margin: 0;
  font-size: 20px;
  letter-spacing: .2px;
}
.card-subtitle{
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Form */
.form-row{ margin-top: 14px; }
label{
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 7px;
}
input[type="text"], input[type="email"], input[type="password"]{
  width: 100%;
  padding: 12px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
  color: var(--text);
  outline: none;
}
input::placeholder{ color: rgba(255,255,255,.38); }
input:focus{
  border-color: rgba(255,90,61,.55);
  box-shadow: 0 0 0 4px rgba(255,90,61,.18);
}

.form-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
}
.btn:hover{ background: rgba(255,255,255,.10); }
.btn-primary{
  border: 1px solid rgba(255,90,61,.42);
  background: linear-gradient(90deg, rgba(255,90,61,.95), rgba(255,138,0,.90));
  color: #141414;
}
.btn-primary:hover{
  filter: brightness(1.05);
}
.btn-link{
  border: none;
  background: transparent;
  padding: 0;
  color: var(--muted);
  font-weight: 600;
}
.btn-link:hover{ color: #fff; text-decoration: underline; }

/* Alert */
.alert{
  border-radius: var(--radius-sm);
  padding: 12px 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
}
.alert-danger{
  border-color: rgba(239,68,68,.35);
  background: rgba(239,68,68,.10);
}
.alert-ok{
  border-color: rgba(34,197,94,.35);
  background: rgba(34,197,94,.10);
}

/* Login page layout */
.auth-wrap{
  max-width: 980px;
  margin: 0 auto;
}
.auth-hero{
  margin-bottom: 18px;
}
.auth-hero h1{
  margin: 0;
  font-size: 30px;
  letter-spacing: .2px;
}
.auth-hero p{
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Mobile spacing */
@media (max-width: 520px){
  #contents{ padding: 24px 0 40px; }
  .card-body{ padding: 18px; }
  .auth-hero h1{ font-size: 24px; }
}
