/* ============================================================
   AUTENTICAZIONE – Stile moderno (Light + Deep Blue Accents)
   ============================================================ */

/* --------- BODY --------- */
.auth-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;

    background: #eef2f7; /* sfondo chiaro elegante */
    font-family: "Nunito Sans", sans-serif;
    color: #0d1b2a;
}

/* --------- CARD --------- */
.auth-card {
    width: 360px;
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(13, 27, 42, 0.12);
    text-align: center;
    animation: fadeIn 0.5s ease;
    border: 1px solid rgba(13, 27, 42, 0.08);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --------- ICON --------- */
.auth-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.9;
}

/* --------- TITOLI --------- */
.auth-card h2 {
    font-size: 24px;
    margin-bottom: 6px;
    font-weight: 700;
}

.auth-card .desc {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 25px;
}

/* --------- INPUT GROUP --------- */
.auth-input-group {
    text-align: left;
    margin-bottom: 18px;
}

.auth-input-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 600;
    color: #0d1b2a;
}

/* --------- INPUT E SELECT --------- */
.auth-input,
.auth-select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #c9d6e3;
    background: #f8fbff;
    font-size: 14px;
    outline: none;

    transition: all 0.2s ease;
}

.auth-input:focus,
.auth-select:focus {
    border-color: #1b3a59;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(27, 58, 89, 0.15);
}

/* --------- PASSWORD WRAPPER --------- */
.password-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gen-pass-btn {
    width: 44px;
    height: 44px;
    background: #e6effa;
    border: 1px solid #c1d4e8;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;

    transition: all 0.2s ease;
}

.gen-pass-btn img {
    width: 20px;
    height: 20px;
}

.gen-pass-btn:hover {
    background: #d4e3f7;
    border-color: #8fb4d9;
}

/* --------- BUTTON PRINCIPALE --------- */
.auth-btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    font-size: 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: linear-gradient(135deg, #1b3a59, #274d73);
    color: #ffffff;
    font-weight: 700;

    transition: all 0.25s ease;
}

.auth-btn:hover {
    background: linear-gradient(135deg, #274d73, #1b3a59);
    transform: translateY(-2px);
}

/* --------- LINK --------- */
.auth-link {
    margin-top: 18px;
    font-size: 14px;
}

.auth-link a {
    color: #1b3a59;
    font-weight: 600;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* --------- RESPONSIVE --------- */
@media (max-width: 420px) {
    .auth-card {
        width: 90%;
        padding: 30px 20px;
    }
}

/* --------- RIDUZIONE CARD --------- */
.auth-card {
    width: 420px; /* un po' più largo per 2 colonne */
    padding: 30px 28px;
}

/* --------- LAYOUT DUE COLONNE --------- */
.auth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px; /* spazio tra colonne */
    margin-bottom: 18px;
}

/* garantiamo che gli input dentro .auth-row siano uniformi */
.auth-row .auth-input-group {
    margin-bottom: 0;
}

/* --------- RESPONSIVE: torna 1 colonna su schermi stretti --------- */
@media (max-width: 480px) {
    .auth-card {
        width: 92%;
        padding: 26px 20px;
    }

    .auth-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* =====================================
   LOGIN – Versione leggermente compatta
   ===================================== */
.auth-card h2 {
    margin-bottom: 6px;
}

.auth-card .desc {
    margin-bottom: 22px;
}

.auth-message {
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 8px;
    background: #ffe6e6;
    color: #b30000;
    font-size: 14px;
    text-align: center;
    border: 1px solid #ffcccc;
}
