/* ================================
   HEADER & VIDEO - DESKTOP
================================= */
header {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

header video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

header::after {
    content: "";
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.5);
    z-index:2;
}

/* ================================
   HERO TITLE
================================= */
.hero-title {
    position: relative;
    z-index: 3;
    width: 100%;
    text-align: center;
}

.hero-title h1 {
    font-size: 3rem;
    color: #fff;
    margin: 0;
}

/* ================================
   NAVBAR
================================= */
nav.navbar {
    z-index: 10;
}

/* ================================
   LOGIN FORM - DESKTOP
================================= */
#loginFormContainer {
    position: absolute;
    top: 100px;
    right: 40px;
    z-index: 5;
    width: 320px;
    max-width: 90%;
    background: #fff;
    border-radius: 12px;
    padding: 25px 30px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

#loginFormContainer .loginHeader h3 {
    font-weight: 600;
    color: #2694a8;
    text-align: center;
    margin-bottom: 15px;
}

#loginFormContainer .form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 10px 12px;
    background: whitesmoke;
    margin-bottom: 10px;
}

#loginFormContainer .form-control:focus {
    border-color: #2694a8;
    box-shadow: 0 0 0 0.15rem rgba(13,110,253,.25);
}

#signInBtn {
    border-radius: 8px;
    background-color: #2694a8;
    border: none;
    padding: 10px;
    font-weight: 500;
}

#signInBtn:hover {
    background-color: #2cb1c6;
}

#loginWrongCredential {
    color: #dc3545;
    font-size: 0.875rem;
    margin-bottom: 10px;
    display: none;
}

/* ================================
   RESPONSIVE - MOBILE
================================= */
@media (max-width: 768px) {

    header {
        height: auto;
        min-height: 100vh;
        padding-top: 150px; /* spazio navbar */
        justify-content: flex-start;
    }

    .hero-title h1 {
        font-size: 2rem;
        margin-top: 20px;
    }

    #loginFormContainer {
        position: relative;
        margin: 20px auto;
        top: auto;
        right: auto;
        transform: none;
        width: 90%;
        max-width: 360px;
    }

    nav.navbar {
        position: relative;
        z-index: 10; /* sopra login */
        padding: 10px;
    }
}
