/* === 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;
    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;
}

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

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

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

/* === REGISTER BOX === */
.register-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    padding: 120px 20px 40px;
    box-sizing: border-box;
}

.register-box {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 45px 40px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.5s ease-out;
}

.logo {
    width: 80px;
    height: auto;
    margin-bottom: 20px;
}

.register-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #222;
}

.register-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
}

/* INPUTS */
.register-box input {
    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;
    background-color: #fafafa;
}

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

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

/* BUTTON */
.register-box button {
    border: none;
    background-color: #0095f6;
    color: white;
    font-weight: 600;
    cursor: pointer;
    margin-top: 18px;
    width: 100%;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 15px;
    text-transform: uppercase;
    transition: 0.3s ease;
}

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

/* GDPR */
.gdpr-consent {
    margin-top: 15px;
    text-align: left;
    font-size: 13px;
    color: #444;
}

.gdpr-consent a {
    color: #0078ff;
    text-decoration: none;
    font-weight: 500;
}

.gdpr-consent a:hover {
    text-decoration: underline;
}

/* Back to login */
.back-login {
    margin-top: 18px;
    font-size: 14px;
    color: #555;
}

.back-login a {
    color: #0095f6;
    font-weight: 600;
    text-decoration: none;
}

.back-login a:hover {
    text-decoration: underline;
}

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

/* RESPONSIVE */
@media (max-width: 600px) {
    .register-box {
        padding: 35px 25px;
    }

    .register-title {
        font-size: 22px;
    }

    .register-subtitle {
        font-size: 14px;
    }

    .logo {
        width: 100px;
    }
}

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

/* Nasconde hamburger su desktop */
.hamburger {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: #0078ff;
}

/* Menu mobile nascosto di default */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.97);
    position: fixed;
    top: 65px;
    right: 0;
    width: 220px;
    border-radius: 0 0 0 12px;
    box-shadow: -3px 3px 15px rgba(0,0,0,0.15);
    z-index: 999;
    transition: transform 0.3s ease, opacity 0.3s ease;
    padding: 15px;
    transform: translateX(100%);
    opacity: 0;
}

/* link del menu mobile */
.mobile-menu a {
    padding: 10px 14px;
    color: #333;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
}

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

/* pulsante registrati nel menu mobile */
.mobile-menu .btn-register {
    background: #0078ff;
    color: #fff;
    margin-top: 10px;
    text-align: center;
    border-radius: 8px;
}

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

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

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

