/* === BASE === */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', Arial, sans-serif;
    background: linear-gradient(135deg, #0a192f 0%, #0078ff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 14px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    box-sizing: border-box;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-nav {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
}

/* link desktop */
.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    margin-left: 20px;
    font-size: 15px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #0078ff;
}

.btn-login {
    color: #0078ff;
    font-weight: 600;
}

/* === LOGIN === */
.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 120px 20px 40px;
    min-height: 100vh;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 40px 35px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 440px;
    text-align: center;
    box-sizing: border-box;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.5s ease-out;
}

.logo {
    width: 80px;
    height: auto;
    object-fit: contain;
    margin-bottom: 25px;
}

/* input e pulsanti */
.login-box input,
.login-box button {
    margin: 8px 0;
    width: 100%;
    padding: 14px 18px;
    border-radius: 6px;
    border: 1.5px solid #dbdbdb;
    box-sizing: border-box;
    font-size: 15px;
    transition: all 0.3s ease;
}

.login-box input {
    background-color: #fafafa;
}

.login-box input:focus {
    outline: none;
    border-color: #0095f6;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 149, 246, 0.1);
}

.login-box input::placeholder {
    color: #8e8e8e;
}

.login-box button {
    border: none;
    background-color: #0095f6;
    color: white;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.login-box button:hover {
    background-color: #0073e6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 149, 246, 0.3);
}

/* link login */
.forgotAndSignup {
    margin-top: 16px;
    font-size: 13px;
    display: block;
    color: #333;
}

.forgotAndSignup a {
    color: #0095f6;
    text-decoration: none;
    font-weight: 500;
}

.forgotAndSignup a:hover {
    text-decoration: underline;
}

/* === ANIMATION === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === HAMBURGER MENU (MOBILE) === */

/* Icona hamburger */
.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #0078ff;
    transition: transform 0.2s ease;
}

.hamburger:hover {
    transform: scale(1.1);
}

/* Menu mobile nascosto di default */
.mobile-menu {
    position: fixed;
    top: 68px; /* spazio per la navbar */
    right: 0;
    width: 240px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-radius: 0 0 0 16px;
    box-shadow: -3px 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 999;
}

/* Link menu mobile */
.mobile-menu a {
    width: 100%;
    padding: 12px 10px;
    color: #333;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease, color 0.3s ease;
}

.mobile-menu a:hover {
    background: #0078ff;
    color: #fff;
}

/* Pulsante Registrati */
.mobile-menu .btn-register {
    background: #0078ff;
    color: #fff;
    margin-top: 10px;
    text-align: center;
    border-radius: 8px;
    width: 100%;
}

.mobile-menu .btn-register:hover {
    background: #005fcc;
}

/* Stato aperto */
.mobile-menu.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

/* === RESPONSIVE NAVBAR === */
@media (max-width: 992px) {
    .nav-links {
        display: none; /* nasconde i link desktop */
    }

    .hamburger {
        display: block; /* mostra hamburger */
    }
}

/* === RESPONSIVE LOGIN === */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 20px;
    }

    .login-box {
        padding: 30px 25px;
        width: 90%;
    }

    .logo {
        width: 110px;
    }
}
