﻿/* CSS Reset */
/* # =================================================================
   # Global selectors
   # ================================================================= */

html {
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%; /* Prevent adjustments of font size after orientation changes in iOS */
    word-break: normal;
    -moz-tab-size: 4;
    tab-size: 4;
}

html, body {
    margin: 0;
    display: flex;
    flex-direction: column;
}

body {
    background-image: url('../assets/bg_img.jpeg');
    background-repeat: no-repeat;
    background-size: cover;
}

main {
    flex: 1; /* Pushes footer to the bottom */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 172px);
    padding: 20px;
    overflow: hidden;
}

@media(max-width: 767px) {
    main {
        min-height: calc(100vh - 324px);
    }
}

*,
::before,
::after {
    background-repeat: no-repeat; /* Set `background-repeat: no-repeat` to all elements and pseudo elements */
    box-sizing: inherit;
}

::before,
::after {
    text-decoration: inherit; /* Inherit text-decoration and vertical align to ::before and ::after pseudo elements */
    vertical-align: inherit;
}

* {
    padding: 0; /* Reset `padding` and `margin` of all elements */
    margin: 0;
}

/* End CSS Reset */

:root {
    --dark-blue: #0C3657;
    --light-blue: #2AACE2;
    --red: #CE3044;
    --bs-link-color-rgb: 204, 48, 68;
    --bs-link-hover-color-rgb: 204, 48, 68;
}

div.login-card {
    width: 480px;
    min-width: 360px;
    z-index: 1050;
    border: none;
}

.frosted-glass {
    background: rgba(255, 255, 255, 1.0);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sdcoe-footer-link {
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    color: #fff;
    text-decoration: none;
}

.rh-logo {
    display: block;
    margin: auto;
    max-width: 100%;
    height: auto;
}

.sdcoe-logo {
    display: block;
    margin: auto;
    max-width: 381px;
    height: auto;
}

@media (max-width: 992px) {
    .sdcoe-logo {
        margin: 0;
    }
}

@media (max-width: 384px) {
    .sdcoe-logo {
        max-width: 100%;
    }
}

footer.container {
    padding: 1.5rem 1rem;
}

.bg-rh-dark {
    background-color: rgba(12, 54, 87, 1);
}

.socials-ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    font-size: 0;
    line-height: 1;
}

.socials-li {
}

.socials-a {
    display: block;
    padding: 10px 0;
    text-decoration: none;
    height: 40px;
    width: 40px;
    border-radius: 100%;
    background-color: var(--light-blue);
    color: var(--dark-blue);
    border-color: var(--light-blue);
    text-align: center;
    vertical-align: middle;
}

    .socials-a:hover {
        background-color: transparent;
        border: solid 1px var(--light-blue);
        color: var(--light-blue);
    }

/* Login Button Override */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #CE3044;
    --bs-btn-border-color: #CE3044;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #B52B3D;
    --bs-btn-hover-border-color: #A22737;
    --bs-btn-focus-shadow-rgb: 224, 68, 88;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #A22737;
    --bs-btn-active-border-color: #972433;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #CE3044;
    --bs-btn-disabled-border-color: #CE3044;
}

.btn-outline-secondary {
    --bs-btn-color: #2AACE2;
    --bs-btn-border-color: #2AACE2;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #2AACE2;
    --bs-btn-hover-border-color: #2AACE2;
    --bs-btn-focus-shadow-rgb: 108, 117, 125;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #2AACE2;
    --bs-btn-active-border-color: #2AACE2;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #2AACE2;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #2AACE2;
    --bs-gradient: none;
}

a {
    color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
    text-decoration: underline;
}

#passwordStrengthMeter {
    display: flex;
    gap: .25rem;
    margin-top: .5rem;
}

    #passwordStrengthMeter > span {
        flex: 1;
        height: .5rem;
        background-color: lightgrey;
    }

        #passwordStrengthMeter > span:nth-child(1) {
            border-top-left-radius: .5rem;
            border-bottom-left-radius: .5rem;
        }

        #passwordStrengthMeter > span:nth-child(3) {
            border-top-right-radius: .5rem;
            border-bottom-right-radius: .5rem;
        }

#qr-div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media(max-width: 500px) {
    #qr-div {
        flex-direction: column;
    }
}

div#qrcode > img {
    max-width: 160px;
}

.p-showManualEntry {
    font-size: .875em !important;
}

#qrcode {
    display: flex;
    justify-content: center;
    padding: 16px;
    background: url(../Images/qr_code_bg.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#mfa-code-input {
    padding: 1rem .75rem !important;
    border: 1px solid #ced4da !important;
    box-shadow: none;
}

#showPasswordBtn > i {
    pointer-events: none;
}

/* ----- Custom Toggle -----*/

.switch {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 17px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 13px;
        width: 13px;
        left: 4px;
        bottom: 2px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

input:checked + .slider {
    background-color: #2A3F54;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(13px);
    -ms-transform: translateX(13px);
    transform: translateX(10px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

    .slider.round:before {
        border-radius: 50%;
    }

.loginContent {
    content: "";
    position: relative;
    left: 0;
    bottom: 0;
    right: 0;
    height: 60%;
    border-radius: 8px;
    z-index: 2;
    background-color: white;
    padding: 0 24px;
}

.fish, .fish-shadow {
    width: 960px;
    height: auto;
    overflow-y: hidden;
    position: absolute;
    top: -220px;
    left: -240px;
    -moz-animation: fish 1s forwards ease-in-out;
    -webkit-animation: fish 1s forwards ease-in-out;
    animation: fish 1s forwards ease-in-out;
}

    .fish path, .fish-shadow path {
        fill: #CD2F43;
    }

        .fish path:hover, .fish-shadow path:hover {
            fill: #CD2F43;
        }

    .fish .line, .fish-shadow .line {
        fill: none;
    }

.fish-shadow-con {
    opacity: 0.9;
    filter: blur(10px);
    position: absolute;
    top: 0;
    left: 0;
}

.fish-shadow {
    top: -125px;
    left: -157px;
}

    .fish-shadow path {
        fill: #000;
    }

        .fish-shadow path:hover {
            fill: red;
        }

.fish-shadow {
    top: -125px;
    left: -157px;
    opacity: 0.4;
}

/* Standard keyframes */
@keyframes fish {
    0%, 70% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Webkit (Safari, older Android browsers) */
@-webkit-keyframes fish {
    0%, 70% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Firefox */
@-moz-keyframes fish {
    0%, 70% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.modal {
    overflow-y: hidden;
}

main div.modal {
    height: calc(100% - 172px);
}

@media(max-width: 767px) {
    main div.modal {
        height: calc(100% - 324px);
    }
}

form#sign-in-form {
/*    padding: 0 24px;*/
}

div.card.modal-content {
    position: relative;
    left: 0;
    bottom: 0;
    right: 0;
    height: 60%;
    background-color: white;
    border-radius: 8px;
    z-index: 2;
    border: none;
}

#login-modal .modal-dialog {
    position: relative;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 480px;
    box-sizing: border-box;
}

#login-modal .modal {
    background-color: rgba(42, 63, 84, .8);
}

    #login-modal.modal.show {
        display: flex !important;
    }
