/* OSTEnse — account.css : login/registrazione e area account */

.auth-wrap {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.2rem 3rem;
  background: var(--cream);
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.07);
  padding: 2rem 1.8rem;
}
.auth-card h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 0.3rem;
}
.auth-card .auth-sub {
  font-family: var(--font-sans);
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.4rem;
}

.auth-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--cream-dark);
}
.auth-tab {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.7rem 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}
.auth-tab.is-active { color: var(--green); border-bottom-color: var(--green); font-weight: 500; }

.auth-field { margin-bottom: 1rem; }
.auth-field label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"] {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--cream);
  color: var(--text);
}
.auth-field input:focus { outline: 2px solid var(--green); border-color: var(--green); }

.auth-consent {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.4;
}
.auth-consent input { margin-top: 0.2rem; flex: 0 0 auto; }
.auth-consent a { color: var(--green); }

.auth-msg { font-family: var(--font-sans); font-size: 0.85rem; min-height: 1.1rem; margin-bottom: 0.6rem; }
.auth-msg.err { color: #b3463c; }
.auth-msg.ok { color: var(--green); }

.auth-card .btn--full { width: 100%; justify-content: center; }
.auth-alt {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1rem;
}
.auth-alt a { color: var(--green); cursor: pointer; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  margin: 1.2rem 0;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--cream-dark);
}
.auth-google-note {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  padding: 0.6rem;
  border: 1px dashed var(--cream-dark);
  border-radius: var(--radius);
}

/* --- Area account --- */
.account-wrap {
  min-height: 100dvh;
  padding: 7rem 1.2rem 4rem;
  background: var(--cream);
}
.account-inner { max-width: 760px; margin: 0 auto; }
.account-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
.account-head h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 2.2rem;
  color: var(--charcoal);
}
.account-logout {
  background: none;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition);
}
.account-logout:hover { background: var(--cream-dark); }
.account-panel {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  margin-bottom: 1.2rem;
}
.account-panel h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--charcoal);
  margin-bottom: 0.9rem;
}
.account-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--cream);
}
.account-row span:first-child { color: var(--muted); }
.account-soon { font-family: var(--font-sans); font-size: 0.9rem; color: var(--muted); }

.address-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--cream);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.5;
}
.address-item em { color: var(--green); font-style: normal; font-size: 0.8rem; }
.address-del {
  background: none; border: none; color: var(--muted); font-size: 1.4rem;
  cursor: pointer; line-height: 1; padding: 0 0.3rem;
}
.address-del:hover { color: #b3463c; }
.address-form { margin-top: 1.1rem; }
.address-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 0.8rem; }
.address-grid .span2 { grid-column: 1 / -1; }
.address-grid input {
  width: 100%; padding: 0.7rem 0.8rem; border: 1px solid var(--cream-dark);
  border-radius: var(--radius); font-family: var(--font-sans); font-size: 0.9rem; background: var(--cream);
}
.address-grid input:focus { outline: 2px solid var(--green); border-color: var(--green); }
@media (max-width: 480px) { .address-grid { grid-template-columns: 1fr; } .address-grid .span2 { grid-column: auto; } }

.order-item { padding: 0.7rem 0; border-bottom: 1px solid var(--cream); font-family: var(--font-sans); font-size: 0.92rem; }
.order-item:last-child { border-bottom: none; }
.order-meta { color: var(--muted); font-size: 0.83rem; margin-top: 0.2rem; }
.order-status { color: var(--green); text-transform: capitalize; }

.g-signin { display: flex; justify-content: center; min-height: 44px; }
