@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

*{
    box-sizing:border-box;
}

html,
body{
    margin:0;
    padding:0;
    overflow-x:hidden;
}

body{
    font-family:'Inter',sans-serif;
    background:
        linear-gradient(rgba(7,7,9,0.94),rgba(7,7,9,0.96)),
        url('https://images.unsplash.com/photo-1505664194779-8beaceb93744?q=80&w=2070&auto=format&fit=crop');
    background-size:cover;
    background-position:center;
    background-attachment:fixed;
    color:#e7e7ea;
    min-height:100vh;
}

/* HEADER */

header{
    width:100%;
    background:
        linear-gradient(180deg,#0d0d10 0%,#141418 100%);
    border-bottom:1px solid rgba(255,255,255,0.06);
    box-shadow:
        0 12px 30px rgba(0,0,0,0.45);
    position:sticky;
    top:0;
    z-index:1000;
}

header::before{
    content:"AREA CLIENTI RISERVATA — ACCESSO CONFIDENZIALE";
    display:block;
    width:100%;
    padding:10px 24px;
    background:#7d1018;
    color:white;
    font-size:11px;
    font-weight:700;
    letter-spacing:2px;
}

header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:24px 40px;
    flex-wrap:wrap;
    gap:20px;
}

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

.logo div{
    display:flex;
    align-items:center;
    gap:18px;
}

.logo-img{
    width:74px;
    height:74px;
    border-radius:50%;
    border:2px solid rgba(255,255,255,0.08);
    box-shadow:
        0 8px 20px rgba(0,0,0,0.45);
}

.logo span{
    font-family:'Cormorant Garamond',serif;
    font-size:34px;
    line-height:1.1;
    color:white;
    font-weight:600;
}

/* NAV */

nav ul{
    list-style:none;
    display:flex;
    gap:12px;
    margin:0;
    padding:0;
    flex-wrap:wrap;
}

nav ul li a{
    text-decoration:none;
    color:#dddddd;
    font-size:14px;
    font-weight:600;
    padding:12px 18px;
    border-radius:4px;
    border:1px solid transparent;
    transition:all .2s ease;
}

nav ul li a:hover,
nav ul li a.active{
    background:rgba(255,255,255,0.05);
    border-color:rgba(255,255,255,0.08);
    color:white;
}

/* MAIN */

main{
    width:100%;
    padding:50px 20px;
}

/* CONTAINER */

.container{
    width:100%;
    max-width:760px;
    margin:0 auto;
}

.content{
    background:
        linear-gradient(180deg,
        rgba(18,18,22,0.96),
        rgba(10,10,12,0.98));
    border:1px solid rgba(255,255,255,0.06);
    border-radius:12px;
    padding:50px;
    box-shadow:
        0 24px 60px rgba(0,0,0,0.45);
    position:relative;
    overflow:hidden;
}

.content::before{
    content:"CLIENT FILE ACCESS";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    padding:12px 20px;
    background:#7d1018;
    color:white;
    font-size:11px;
    font-weight:700;
    letter-spacing:2px;
}

/* TITLES */

.content h2{
    margin-top:28px;
    margin-bottom:22px;
    font-family:'Cormorant Garamond',serif;
    font-size:46px;
    line-height:1.1;
    color:white;
    font-weight:600;
}

.content p{
    color:#b9b9c0;
    line-height:1.8;
    font-size:16px;
}

/* LOGIN */

.login-form{
    margin-top:40px;
}

.login-form input{
    width:100%;
    padding:18px;
    margin-bottom:18px;
    background:#111216;
    border:1px solid rgba(255,255,255,0.08);
    border-radius:6px;
    color:white;
    font-size:15px;
    transition:all .2s ease;
}

.login-form input::placeholder{
    color:#7d7d88;
}

.login-form input:focus{
    outline:none;
    border-color:#7d1018;
    box-shadow:
        0 0 0 4px rgba(125,16,24,0.18);
}

/* INPUT CONTAINER */

.input-container{
    position:relative;
    display:flex;
    align-items:center;
    gap:12px;
}

/* HINT BUTTON */

.hint-button{
    width:38px;
    height:38px;
    min-width:38px;
    border-radius:50%;
    background:#7d1018;
    color:white;
    display:flex;
    justify-content:center;
    align-items:center;
    cursor:pointer;
    font-weight:700;
    transition:all .2s ease;
    box-shadow:
        0 8px 20px rgba(0,0,0,0.35);
}

.hint-button:hover{
    transform:scale(1.05);
}

/* HINT */

.hint{
    margin-top:14px;
    padding:14px;
    background:rgba(125,16,24,0.12);
    border:1px solid rgba(125,16,24,0.25);
    border-radius:6px;
    color:#f0c9cb;
    font-size:14px;
}

/* BUTTONS */

button{
    width:100%;
    margin-top:20px;
    padding:18px;
    background:
        linear-gradient(180deg,#7d1018 0%,#5f0d13 100%);
    border:none;
    border-radius:6px;
    color:white;
    font-size:14px;
    font-weight:700;
    letter-spacing:1px;
    cursor:pointer;
    transition:all .2s ease;
    box-shadow:
        0 12px 28px rgba(0,0,0,0.3);
}

button:hover{
    transform:translateY(-2px);
    box-shadow:
        0 18px 36px rgba(0,0,0,0.4);
}

/* PROFILE */

.profile{
    display:flex;
    align-items:center;
    gap:20px;
    margin:34px 0;
    padding:20px;
    border:1px solid rgba(255,255,255,0.06);
    border-radius:10px;
    background:rgba(255,255,255,0.02);
}

.profile img{
    width:82px;
    height:82px;
    border-radius:50%;
    object-fit:cover;
    border:2px solid rgba(255,255,255,0.08);
}

.profile span{
    font-size:22px;
    font-weight:600;
    color:white;
}

/* DOCUMENTS */

.document-list{
    margin-top:30px;
}

.document-list h3{
    color:white;
    margin-bottom:20px;
}

.document-list ul{
    list-style:none;
    padding:0;
}

.document-list li{
    padding:18px;
    border-radius:8px;
    margin-bottom:14px;
    background:rgba(255,255,255,0.03);
    border:1px solid rgba(255,255,255,0.06);
    cursor:pointer;
    transition:all .2s ease;
    color:#d9d9df;
}

.document-list li:hover{
    transform:translateY(-2px);
    border-color:rgba(125,16,24,0.35);
}

/* DOCUMENT PREVIEW */

.document-preview img{
    width:100%;
    margin-top:24px;
    border-radius:8px;
    border:1px solid rgba(255,255,255,0.06);
}

/* ERROR */

#error-message{
    margin-top:16px;
    color:#ff8f96 !important;
    font-weight:600;
}

/* HIDDEN */

.hidden{
    display:none;
}

/* FOOTER */

footer{
    margin-top:60px;
    background:#0c0c10;
    border-top:1px solid rgba(255,255,255,0.05);
    padding:34px 24px;
    text-align:center;
    color:#8d8d95;
    font-size:13px;
    line-height:1.9;
}

/* MOBILE */

@media(max-width:768px){

    header{
        flex-direction:column;
        padding:22px;
    }

    .logo,
    .logo div{
        flex-direction:column;
        text-align:center;
    }

    .logo span{
        font-size:28px;
    }

    nav ul{
        justify-content:center;
    }

    .content{
        padding:34px 22px;
    }

    .content h2{
        font-size:34px;
    }

    .profile{
        flex-direction:column;
        text-align:center;
    }
}