
body {
    font-family: Roboto, sans-serif;
    background: #f9f9f9;
    color: #222;
}

/* Top bar */
.top-bar {
    width: 100%;
    height: 150px;
    background: linear-gradient(90deg, #ff0000, #b22222, #8b0000);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
}

/* Logo mobile */
header {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: auto; /* così non blocca click sul carosello */
}

header .logo {
    width: 220px;
    height: auto;
}

/* Contenitore principale form + logo desktop */
.form-page-container {
    display: flex;
    flex-direction: column; /* mobile default */
    align-items: center;
    width: 100%;
    margin-top: 100px;
    min-height: calc(100vh - 100px);
    justify-content: center;
    padding: 0 15px;
}

/* lato sinistro logo desktop */
.logo-side {
    display: none;
}

/* lato form */
.form-side {
    width: 100%;
    max-width: 400px;
    margin-top: 20px;
}

/* titolo form */
.form-title {
    text-align: center;
    margin-bottom: 20px;
}

#admin-secret-field {
    display:none;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.fade-in {
    opacity: 1;
}

.fade-out {
    opacity: 0;
}
/* Desktop */
@media (min-width: 768px) {
    /* Nascondiamo logo mobile */
    header {
        display: none;
    }

    .form-page-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: calc(100% - 500px); /* spazio dai bordi 250px per lato */
        margin: 0 auto;
        height: calc(100vh - 150px);
        gap: 50px; /* spazio tra logo e form */
        padding: 0;
    }

    .logo-side {
        display: flex;
        justify-content: center;
        align-items: center;
        flex: 1;
    }

    .logo-side .logo-desktop {
        width: 800px;
        margin-top: 200px;
        opacity: 0.2;
    }

    .form-side {
        flex: 1;
        max-width: 450px;
        display: flex;          /* aggiunto */
        flex-direction: column; /* verticale */
        justify-content: center; /* centra verticalmente */
        margin-top: 25vh;
    }
}
