@import url("../variables.css");
@import url("../unauthenticated/variables.css");

/* ---- Body ---- */
html {
    font-size: 16px;
    position: relative;
    min-height: 100%;
    min-width: 320px;
    margin: 0;
    padding: 0;
}
body {
    margin: 0;
    padding: 0;
    animation: fadeIn 0.5s ease-in-out;
}

/* ---- Content ---- */
.cp-unauth-content {
    min-height: var(--cp-unauth-main-content-height);
    overflow: auto;
}

/* ---- Video ---- */
.cp-unauth-content-container {
    position: relative;
    justify-content: start;
    align-items: center;
    width: 100%;
    height: var(--cp-unauth-main-content-height);
    padding: 0;
}

.cp-unauth-content-container .cp-unauth-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    backface-visibility: hidden;
    will-change: transform;
}

.cp-unauth-video-tint {
    position: absolute;
    width: 100%;
    min-height: 100%;
    background: var(--cp-color-primary);
    background: linear-gradient(20deg,rgba(236, 33, 36, 0.30) 10%, rgba(255, 255, 255, 0.2) 40%, rgba(236, 33, 36, 0.20) 90%);
}

/* ---- Video Fallback Image ---- */
.cp-unauth-video-fallback-image {
    width: 100%;
    height: 100%;
}

/* ---- Login Heading ---- */
.cp-unauth-heading {
    font-size: 2rem;
    font-weight: 700;
    font-style: italic;
    font-feature-settings: 'smcp' on;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: var(--cp-color-primary);
    position: absolute;
    height: 100%;
    width: 100%;
    align-content: end;
    text-align: end;
    padding: 2rem;
    transform: translateX(-100%);
    opacity: 0;
    animation: slideFromLeftToRight 1s ease-out forwards;
}

.cp-unauth-heading-emphasis {
    font-size: 3.5rem;
    color: var(--cp-color-lightest-grey);
    line-height: 1.2;
}

/* ----- Video Overlay Content ---- */
.cp-unauth-video-overlay-content {
    position: absolute;
    min-height: fit-content;
    width: 30vw;
    left: 5vw;
    background: #FFFFFFd6;
    border-radius: 2rem;
    padding: 2rem;
}


/* ---- Responsive ---- */
@media (max-width: 1400px) {
    .cp-unauth-video-overlay-content {
        height: auto;
        width: 40vw;
    }
}
@media (max-width: 992px) {
    .cp-unauth-video-overlay-content {
        height: auto;
        width: 70vw;
        left: 15vw;
    }
}
@media (max-width: 768px) {
    .cp-unauth-content-container {
        display: flex;
        position: relative;
        flex-direction: column;
        height: var(--cp-unauth-main-content-height);
    }
    .cp-unauth-background-video-group {
        display: flex;
        position: relative;
        width: 100%;
        height: 40vh;
        min-height: 200px;
        top: unset;
        left: unset;
        transform: unset;
        object-fit: cover;
    }
    .cp-unauth-content-container .cp-unauth-video {
        z-index: 0;
    }
    .cp-unauth-content-container .cp.login-video-tint {
        margin-top: -40vh;
        z-index: 1;
    }
    .cp-unauth-video-overlay-content {
        position: relative;
        height: 45vh;
        width: 100vw;
        margin: auto;
        border-radius: unset;
        justify-content: center;
        align-items: center;
        left: unset;
    }
    .cp-unauth-heading {
        align-content: end;
        text-align: start;
        font-size: 1.25rem;
    }
    .cp-unauth-heading-emphasis {
        font-size: 2.25rem;
    }
}
@media (min-width: 768px) {
    .cp-unauth-video-overlay-content-container {
        display: flex;
        position: absolute;
        width: 100%;
        height: 100%;
        align-items: center;
    }
    .cp-unauth-video-overlay-content {
        position: absolute;
        height: auto;
    }
}

/* ---- Login Button/Links ---- */
.cp-unauth-button {
    width: 100%;
    min-height: 2.5rem;
    background-color: var(--cp-color-primary);
    color: var(--cp-color-lightest-grey);
    font-size: 1.4rem;
    border: none;
    border-radius: .5rem;
    padding: .5rem;
}
#unauthenticated-layout a {
    text-decoration: none;
    color: var(--cp-color-dark-grey);
}
#unauthenticated-layout a:hover {
    text-decoration: none;
    color: var(--cp-color-primary);
}

.cp-auxiliary-links span {
    padding: .5rem;
}

/* ---- Large Content Layout Variant ---- */
.cp-unauth-large-content-layout .cp-unauth-content-container {
    display: flex;
    position: relative;
    flex-direction: column;
    height: unset;
    margin-bottom: var(--cp-unauth-footer-height);
}

.cp-unauth-large-content-layout .cp-unauth-background-video-group {
    display: flex;
    position: relative;
    width: 100%;
    height: 30vh;
    min-height: 25vh;
    top: unset;
    left: unset;
    transform: unset;
    object-fit: cover;
}

.cp-unauth-large-content-layout .cp-unauth-content-container .cp-unauth-video {
    z-index: 0;
}

.cp-unauth-large-content-layout .cp-unauth-content-container .cp.login-video-tint {
    margin-top: -40vh;
    z-index: 1;
}
.cp-unauth-large-content-layout .cp-unauth-video-overlay-content-container {
    padding: 0 5rem;
    position: relative;
}
.cp-unauth-large-content-layout .cp-unauth-video-overlay-content {
    position: relative;
    height: 45vh;
    width: 100vw;
    margin: auto;
    border-radius: unset;
    justify-content: center;
    align-items: center;
    left: unset;
}

.cp-unauth-large-content-layout .cp-unauth-heading {
    align-content: end;
    text-align: end;
    font-size: 1.75rem;
}

.cp-unauth-large-content-layout .cp-unauth-heading-emphasis {
    font-size: 3rem;
}

.cp-unauth-large-content-layout p {
    text-align: justify;
}

/* ---- Large Content Layout Variant Responsiveness ---- */
@media (max-width: 768px) {
    .cp-unauth-large-content-layout .cp-unauth-heading {
        text-align: start;
        font-size: 1.25rem;
    }

    .cp-unauth-large-content-layout .cp-unauth-heading-emphasis {
        font-size: 2.25rem;
    }
}

/* ---- Bootstrap Overrides (used by .NET Identity Views) ---- */
body#unauthenticated-layout .col-md-4 {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
}
body#unauthenticated-layout .btn.btn-primary {
    color: var(--cp-color-lightest-grey);
    background: var(--cp-color-primary);
    border-color: var(--cp-color-primary);
}

/* ---- Animation ---- */
@keyframes slideFromLeftToRight {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}