* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f2f4f7;
  color: #1a1a1a;
  min-height: 100vh;
}

.container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 16px;
}

.card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 32px 24px;
  width: 100%;
  max-width: 480px;
}

h1 {
  font-size: 1.4rem;
  margin: 0 0 20px 0;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.header-row h1 {
  margin: 0;
}

.logout-link {
  font-size: 0.85rem;
  color: #666;
  text-decoration: none;
}

.logout-link:hover {
  text-decoration: underline;
}

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 16px 0 6px 0;
}

input[type="text"],
input[type="tel"],
input[type="password"],
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #2563eb;
}

button {
  margin-top: 24px;
  width: 100%;
  padding: 14px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: #1d4ed8;
}

button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.errore {
  color: #dc2626;
  font-size: 0.9rem;
  margin: 0 0 12px 0;
}

.esito {
  font-size: 0.9rem;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.esito.ok {
  background: #dcfce7;
  color: #166534;
}

.esito.errore {
  background: #fee2e2;
  color: #991b1b;
}

@media (max-width: 400px) {
  .card {
    padding: 24px 18px;
  }
}
