* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================
   BODY
========================================= */

body {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    font-family:
        "Inter",
        system-ui,
        sans-serif;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(37, 99, 235, 0.12),
            transparent 42%
        ),
        radial-gradient(
            circle at 80% 85%,
            rgba(30, 64, 175, 0.10),
            transparent 45%
        ),
        #020617;

    color: #f8fafc;
}


/* =========================================
   CARD
========================================= */

.card {
    width: 100%;
    max-width: 380px;

    padding:
        2.75rem
        2.25rem
        2.25rem;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 0.9rem;

    position: relative;

    background: #0f172a;

    border: 1px solid #1e293b;

    border-radius: 18px;

    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
}


/* =========================================
   LOGO
========================================= */

.logo {
    width: 150px;
    max-height: 75px;

    object-fit: contain;

    margin-bottom: 0.6rem;

    filter:
        drop-shadow(
            0 8px 20px
            rgba(0, 0, 0, 0.25)
        );
}


/* =========================================
   TITOLO
========================================= */

.card h2 {
    font-family:
        "Rajdhani",
        sans-serif;

    font-weight: 700;

    font-size: 1.9rem;

    letter-spacing: 0.02em;

    color: #f8fafc;

    text-align: center;
}


.subtitle {
    color: #64748b;

    font-size: 0.9rem;

    margin-top: -0.55rem;
    margin-bottom: 0.65rem;

    text-align: center;
}


/* =========================================
   DESCRIZIONE
========================================= */

.description {
    width: 100%;

    font-size: 0.88rem;
    line-height: 1.6;

    color: #7890b6;

    text-align: left;

    margin-bottom: 0.65rem;
}


/* =========================================
   CAMPI
========================================= */

.field {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 0.45rem;
}


.field label {
    font-size: 0.75rem;

    font-weight: 600;

    letter-spacing: 0.04em;

    text-transform: uppercase;

    color: #94a3b8;
}


.card input {
    width: 100%;

    padding: 0.85rem 1rem;

    border: 1px solid #334155;

    border-radius: 10px;

    font-size: 0.95rem;

    font-family:
        "Inter",
        sans-serif;

    background: #020617;

    color: #f8fafc;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.card input:hover {
    border-color: #475569;
}


.card input:focus {
    border-color: #3b82f6;

    background: #020617;

    box-shadow:
        0 0 0 3px
        rgba(59, 130, 246, 0.12);
}


.card input::placeholder {
    color: #475569;
}


/* =========================================
   PASSWORD DIMENTICATA
========================================= */

.forgot-password-container {
    width: 100%;

    display: flex;
    justify-content: flex-end;

    margin-top: -0.35rem;
    margin-bottom: 0.45rem;
}


.forgot-password {
    font-family:
        "Inter",
        sans-serif;

    font-size: 0.8rem;

    font-weight: 500;

    color: #3b82f6;

    text-decoration: none;

    transition:
        color 0.15s ease,
        opacity 0.15s ease;
}


.forgot-password:hover {
    color: #60a5fa;
    text-decoration: underline;
}


/* =========================================
   BOTTONE
========================================= */

.card > button {
    margin-top: 0.75rem;

    width: 100%;

    padding: 0.9rem;

    border: 1px solid #2563eb;

    border-radius: 10px;

    background: #2563eb;

    color: #ffffff;

    font-family:
        "Inter",
        sans-serif;

    font-size: 0.95rem;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 8px 24px
        rgba(37, 99, 235, 0.20);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease,
        border-color 0.15s ease,
        opacity 0.15s ease;
}


.card > button:hover {
    background: #3b82f6;

    border-color: #3b82f6;

    box-shadow:
        0 10px 30px
        rgba(37, 99, 235, 0.30);

    transform: translateY(-1px);
}


.card > button:active {
    transform: translateY(0);
}


.card > button:disabled {
    cursor: not-allowed;

    opacity: 0.55;

    transform: none;
}


/* =========================================
   MESSAGGI
========================================= */

#risposta {
    width: 100%;

    min-height: 1.1rem;

    text-align: center;

    font-size: 0.85rem;

    line-height: 1.5;

    color: #f87171;
}


/* SUCCESSO */

#risposta.success-message {
    color: #4ade80;
}


/* ERRORE */

#risposta.error-message {
    color: #f87171;
}


/* =========================================
   INFO PASSWORD
========================================= */

.password-info {
    width: 100%;

    margin-top: -0.3rem;

    font-size: 0.75rem;

    line-height: 1.5;

    color: #64748b;
}


/* =========================================
   TORNA AL LOGIN
========================================= */

.back-login {
    width: 100%;

    margin-top: 0.65rem;

    text-align: center;
}


.back-login a {
    color: #3b82f6;

    font-size: 0.82rem;

    font-weight: 500;

    text-decoration: none;

    transition: color 0.15s ease;
}


.back-login a:hover {
    color: #60a5fa;

    text-decoration: underline;
}


/* =========================================
   LINK REGISTRAZIONE / LOGIN
========================================= */

.auth-switch {
    width: 100%;

    margin-top: 0.3rem;

    padding-top: 1rem;

    border-top: 1px solid #1e293b;

    text-align: center;

    font-size: 0.82rem;

    color: #64748b;
}


.auth-switch a {
    margin-left: 4px;

    color: #60a5fa;

    font-weight: 600;

    text-decoration: none;

    transition: color 0.15s ease;
}


.auth-switch a:hover {
    color: #93c5fd;

    text-decoration: none;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 450px) {

    body {
        padding: 16px;
    }


    .card {
        padding:
            2.25rem
            1.5rem
            1.75rem;
    }


    .logo {
        width: 135px;
    }

}