﻿@charset "UTF-8";
/* ===========================
   Utilità accessibilità
   =========================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===========================
   Contenitore
   =========================== */
.auth-box {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.auth-box h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #111;
  text-align: center;
}

.auth-box h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 1rem;
  color: #333;
}

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 1.5rem 0;
}

/* ===========================
   Campi
   =========================== */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.field--check {
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111;
}

input[type=email],
input[type=password],
input[type=text] {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #bbb;
  border-radius: 4px;
  font-size: 1rem;
  color: #111;
  background: #fff;
  transition: border-color 0.2s;
}

/* Focus ad alto contrasto — WCAG 2.1 AA */
input:focus,
button:focus,
a:focus {
  outline: 3px solid #005fcc;
  outline-offset: 2px;
  border-color: #005fcc;
}

.checkbox {
  width: 1.2rem;
  height: 1.2rem;
  cursor: pointer;
  accent-color: #005fcc;
  flex-shrink: 0;
}

/* ===========================
   Errori
   =========================== */
.error-summary {
  background: #fff0f0;
  border: 1px solid #c00;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  color: #c00;
  font-size: 0.9rem;
}

.field-error {
  color: #c00;
  font-size: 0.85rem;
  min-height: 1.2em;
}

/* ===========================
   Pulsanti
   =========================== */
button[type=submit] {
  width: 100%;
  padding: 0.85rem;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.25rem;
}

button[type=submit]:hover,
button[type=submit]:focus {
  background: #444;
}

.btn-external {
  width: 100%;
  padding: 0.75rem;
  background: #f5f5f5;
  color: #222;
  border: 2px solid #bbb;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 0.75rem;
  transition: background 0.2s, border-color 0.2s;
}

.btn-external:hover,
.btn-external:focus {
  background: #e8e8e8;
  border-color: #005fcc;
}

#viewport {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100svw;
  height: 100svh;
}

.logos {
  display: flex;
  gap: 1em;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-around;
  align-items: center;
  padding-bottom: 1em;
}
