/* login.css - Stili per la pagina di login VHOST Manager */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(-45deg, #82F2A3, #75CDB8, #6D8DD5);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    padding: 3rem;
    color: #fff;
}

.glass-card h2 {
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.form-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #f1f2f6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.form-control {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    color: #fff;
    padding: 0.8rem 1.2rem;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    color: #fff;
    outline: none;
}

.btn-glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    color: #fff;
    font-weight: 700;
    border-radius: 12px;
    padding: 0.8rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-glass:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2));
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.btn-glass:active {
    transform: translateY(1px);
}

/* Floating shapes for extra "Joy" */
.shape {
    position: absolute;
    filter: blur(60px);
    z-index: -1;
    border-radius: 50%;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: #ffb8b8;
    top: -10%;
    left: -10%;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: #a8e6cf;
    bottom: -20%;
    right: -10%;
}

/* Footer "POWERED BY" in fondo alla pagina (login.php / register.php) */
.login-footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
}

/* ===== Responsive / Mobile ===== */
@media (max-width: 767.98px) {
    .glass-card {
        padding: 2.25rem 1.75rem;
    }
}

@media (max-width: 575.98px), (max-height: 800px) {
    /* Su mobile il form (soprattutto la registrazione, con molti campi) può superare l'altezza
       dello schermo: il body deve poter scrollare invece di tagliare il contenuto. */
    body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
        align-items: flex-start;
        flex-direction: column;
        padding: 1.5rem 0;
        -webkit-overflow-scrolling: touch;
    }

    /* Quando la pagina scrolla, il footer segue il form in coda
       invece di restare sovrapposto ai campi. */
    .login-footer {
        position: static;
        margin: 1.5rem auto 0.5rem;
    }
}

/* Grafica compatta solo sui telefoni (non sui desktop con altezza ridotta) */
@media (max-width: 575.98px) {
    .glass-card {
        padding: 1.75rem 1.35rem;
        border-radius: 16px;
    }

    .glass-card h2 {
        margin-bottom: 1.25rem;
        letter-spacing: 1px;
        font-size: 1.45rem;
    }

    /* I "blob" decorativi possono ridursi per non pesare sul rendering mobile */
    .shape-1 { width: 200px; height: 200px; }
    .shape-2 { width: 240px; height: 240px; }
}