/* welcome-bg.jpg already carries the "Welcome to" heading and the BITS Pilani
   Digital logo on its left, so the page only adds the sign-in panel. */
.welcome {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 2rem 12.5vw 2rem 1rem;
    background: #1f1a14 url("/static/img/welcome-bg.jpg") center / cover no-repeat;
    color: #fff;
}

.welcome-panel {
    width: 100%;
    max-width: 30rem;
    padding: 2.5rem 2.5rem 4rem;
    border-radius: 0.5rem;
    background-color: rgba(40, 40, 40, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.welcome-panel h2 {
    margin-bottom: 2rem;
    font-size: 1.75rem;
    font-weight: 600;
}

.welcome-google {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.75rem;
    height: 4.75rem;
    margin: 0 auto;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease-in-out;
}

.welcome-google:hover,
.welcome-google:focus-visible {
    transform: scale(1.06);
}

.welcome-google img {
    width: 1.5rem;
    height: 1.5rem;
}

/* On narrow screens the photo is cropped to its left side, which keeps the
   heading and logo in view, and the panel drops to the bottom. */
@media (max-width: 767.98px) {
    .welcome {
        align-items: flex-end;
        justify-content: center;
        padding: 1rem 1rem 3rem;
        background-position: 10% center;
    }

    .welcome-panel {
        padding: 1.5rem 1.5rem 2rem;
        text-align: center;
    }

    .welcome-panel h2 {
        margin-bottom: 1.25rem;
        font-size: 1.4rem;
    }
}
