/* ============================== */
/* Styles for Signin/Up */
/* ============================== */
* {
	box-sizing: border-box;
}

.auth-modal {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    /* position: fixed; */
    top: 40px;
    left: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 9999;
    font-family: 'Montserrat', sans-serif !important;
}

/* ============================== */
/* Modal Container */
/* ============================== */
.auth-modal .container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 
            0 10px 10px rgba(0,0,0,0.22);
    position: relative;
    overflow: hidden;
    width: 1140px;
    max-width: 100%;
    min-height: 700px;
}

.auth-modal .form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.auth-modal .sign-in-container {
    left: 0;
    width: 50%;
    z-index: 2;
}

.hide {
    display: none !important;
}
.show {
    display: block !important;
}

/* ============================== */
/* Typography */
/* ============================== */
.auth-modal h1 {
    font-weight: bold;
    margin: 0;
    font-size: 24px;
    font-family: 'Montserrat', sans-serif;
}

.auth-modal h2 {
    text-align: center;
    font-size: 22px;
}

.auth-modal p {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.5px;
    margin: 20px 0 30px;
    text-wrap: auto;
}

.auth-modal span {
    font-size: 12px;
}

.auth-modal a {
    color: #333;
    font-size: 14px;
    text-decoration: none;
    margin: 15px 0;
}

.auth-modal .title {
    font-size: 27px;
    text-transform: uppercase;
    font-weight: 800;
    margin: 0;
    color: black;
    line-height: 1.2;
}
.auth-modal .sub-title{
    color: #212529;
}
.auth-modal .header-text {
    font-size: 37.582px;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    color: #FFFFFF;
}

.auth-modal .mt-5 {
    margin-top: 5px;
}
.auth-modal .mt-10 {
    margin-top: 10px;
}
.auth-modal .mt-15 {
    margin-top: 15px;
}
.auth-modal .mt {
    margin-top: 15px;
}
.auth-modal .ml-13 {
    margin-left: 13px;
}
.auth-modal .pr-12 {
    padding-right: 12px;
}
.auth-modal .login-field {
    padding-right: 80px;
    padding-left: 80px;
}
.auth-modal .recapcha{
    padding-bottom: 10px;
}

.modal {
    display: none;
    position: fixed;
    padding-top: 28px !important;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}
.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    text-align: center;
}

/* ============================== */
/* Buttons */
/* ============================== */
.auth-modal .signin-btn,
.auth-modal button {
    border-radius: 20px;
    border: 1px solid #f73f61;
    background-color: #f73f61;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: bold;
    padding: 12px 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in;
}

.auth-modal .signin-btn:active,
.auth-modal button:active {
    transform: scale(0.95);
}

.auth-modal .signin-btn.ghost,
.auth-modal button.ghost {
    background-color: transparent;
    border-color: #FFFFFF;
}

.auth-modal .signin-btn:hover {
    cursor: pointer;
    background-color: #f73f61 !important;
}

.auth-modal button.ghost:hover {
    background-color: transparent !important;
    border-color: #FFFFFF;
    cursor: pointer;
}

.auth-modal .close-btn {
    position: absolute;
    top: -8px;
    right: -32px;
    background: none !important;
    border: none;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: 0.3s;
}

.auth-modal .close-btn:hover {
    color: #4c5d59;
    cursor: pointer;
}

/* ============================== */
/* Form Elements */
/* ============================== */
.auth-modal form {
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 30px;
    height: 100%;
    text-align: center;
}

.auth-modal input {
    width: 100%;
    background-color: #eee;
    border: none;
    padding: 12px 15px;
    margin: 8px 0;
    border-radius: 5px;
}

.auth-modal .hear-about {
    height: calc(1.5em + .75rem + 2px) !important;
    padding: .375rem .75rem;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.5;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #dee2e6;
    border-radius: .375rem;
    font-family: 'Montserrat', sans-serif;
    margin: 8px 0;
    color: rgba(0, 0, 0, 0.4);
}

.auth-modal a {
    color: #333;
    font-size: 14px;
    text-decoration: none;
}

.auth-modal a > img {
    width: 150px;
}

.auth-modal .form-control {
    display: inline-block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #dee2e6;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: .375rem;
    transition: border-color .15sease-in-out, box-shadow .15sease-in-out;
    font-family: 'Montserrat', sans-serif;
    height: calc(1.5em + .75rem + 2px);
}
.auth-modal .form-control:focus {
    color: var(--bs-body-color);
    background-color: var(--bs-form-control-bg);
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(13,110,253,.25);
}
.auth-modal .form-control:focus-visible {
    color: transparent;
    text-shadow: 0 0 0 #495057;
}
.auth-modal .form-input-sec span {
        padding-top: 17px;
        padding-left: 2px;
        position: absolute;			
}
.auth-modal .form-control::placeholder {
    font-size: 1.0em; 
    color: gray;
    opacity: 0.5;
}
.auth-modal .accept-sec {
    align-items: center;
    gap: 8px;
    display: flex;
}

.auth-modal #tosAccept+span {
    display: inline-block;
    vertical-align: middle;
}
.auth-modal .tearms {
    text-wrap: auto;
    display: inline-block;
    font-size: 14px;
    font-weight: 400;
}
.auth-modal .accept-sec input[type="checkbox"] {
    width: 25px;
    height: 20px;
    display: inline-block;
    position: relative;
    cursor: pointer;
    vertical-align: middle;
}
.auth-modal .row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1* var(--bs-gutter-y));
    margin-right: calc(-.5* var(--bs-gutter-x));
    margin-left: calc(-.5* var(--bs-gutter-x));
}
.auth-modal input::placeholder {
    color: gray; 
    opacity: 1;  
}
.auth-modal .center {
    margin-left: auto;
    margin-right: auto;
}
.signin-form-error{
    background: #ffe6e3;
    border: 1px solid #f2c3bf;
    color: #bf210e;
}
.signin-form-success {
    background: #dff0d8;
    border: 1px solid #3c763d;
    color: #3c763d;
}
.signup-form-error{
    background: #ffe6e3;
    border: 1px solid #f2c3bf;
    color: #bf210e;
    padding: 2px 5px 2px 5px;
}
.signup-form-success {
    background: #dff0d8;
    border: 1px solid #3c763d;
    color: #3c763d;
}

/* ============================== */
/* Desktop Styles */
/* ============================== */

@media only screen and (min-width: 768px) {
    .auth-modal .col-md-6 {
        flex: 0 0 auto;
        width: 50%;
        padding-right: 24px;
    }
    .auth-modal .col-md-12 {
        width: 100%;
        padding-right: 10px;
    }  
    .mobile {
        display: none !important;
    }
    .container.right-panel-active .sign-in-container {
        transform: translateX(100%);
    }

    .auth-modal .sign-up-container {
        left: 0;
        width: 50%;
        opacity: 0;
        z-index: 1;
    }

    .auth-modal .container.right-panel-active .sign-up-container {
        transform: translateX(100%);
        opacity: 1;
        z-index: 5;
        animation: show 0.6s;
    }

    @keyframes show {
        0%, 49.99% {
            opacity: 0;
            z-index: 1;
        }
        
        50%, 100% {
            opacity: 1;
            z-index: 5;
        }
        
    }

/* ============================== */
/* Overlay & Panels */
/* ============================== */
    .auth-modal .overlay-container {
        position: absolute;
        top: 0;
        left: 50%;
        width: 50%;
        height: 100%;
        overflow: hidden;
        transition: transform 0.6s ease-in-out;
        z-index: 100;
    }

    .auth-modal .container.right-panel-active .overlay-container{
        transform: translateX(-100%);
    }

    .auth-modal .overlay {
        background: #FF416C;
        background: -webkit-linear-gradient(to right, #FF4B2B, #FF416C);
        background: linear-gradient(to right, #FF4B2B, #FF416C);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: 0 0;
        color: #FFFFFF;
        position: relative;
        left: -100%;
        height: 100%;
        width: 200%;
        transform: translateX(0);
        transition: transform 0.6s ease-in-out;
    }

    .auth-modal .container.right-panel-active .overlay {
        transform: translateX(50%);
    }

    .auth-modal .overlay-panel {
        position: absolute;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        padding: 0 40px;
        text-align: center;
        top: 0;
        height: 100%;
        width: 50%;
        transform: translateX(0);
        transition: transform 0.6s ease-in-out;
        box-sizing: border-box;
    }

    .auth-modal .overlay-left {
        transform: translateX(-20%);
    }

    .auth-modal .container.right-panel-active .overlay-left {
        transform: translateX(0);
    }

    .auth-modal .overlay-right {
        right: 0;
        transform: translateX(0);
    }

    .auth-modal .container.right-panel-active .overlay-right {
        transform: translateX(20%);
    }
}


/* ============================== */
/* Extra large screen monitor */
/* ============================== */
@media (min-width: 1600px) {
    .auth-modal .mt {
        margin-top: 100px;
    }
 }

/* ============================== */
/* Mobile Responsive Styles */
/* ============================== */
@media screen and (max-width: 768px) {
    .desktop {
        display: none !important;
    }
    .mobile {
        display: block;
        text-align: center;
        margin-top: 10px;
        width: 100%;
    }
    .auth-modal .col-md-6 {
        flex: 0 0 auto;
        width: 100%;
    }
    .auth-modal .col-md-12 {
        width: 100%;
    }
    .sign-in-container,
	.sign-up-container {
		width: 100% !important;
	}
    .auth-modal .container {
        flex-direction: column;
        width: 100%;
        min-height: 120vh;
        padding: 0px;
    }

    .auth-modal .overlay-container {
        display: none;
    }

    .auth-modal .login-field {
        padding-right: 40px;
        padding-left: 40px;
    }

    .auth-modal .pr-12{
        padding-right: 0px;      
      }

    /* .auth-modal form {
        padding: 20px;
    } */

    .auth-modal h1 {
        font-size: 20px;
    }

    .auth-modal .signin-btn,
    .auth-modal button {
        font-size: 12px;
        padding: 10px 30px;
    }
    .auth-modal .close-btn {
        top: 8px;
        right: 2px;
    }

    .auth-modal input {
        padding: 10px;
        font-size: 14px;
    }
    .auth-modal .sign-up-container form {
        padding-top: 10px;
        justify-content: start;
    }
}
@media screen and (max-width: 550px) {
    .auth-modal .close-btn {
        top: -8px;
        right: -146px;
    }
}


/* ============================== */
/* Cognito sign in / sign up modal */
/* (buttons link to the hosted Cognito pages) */
/* ============================== */
#signInUpModal.modal {
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}
#signInUpModal .auth-modal { background: transparent; } /* backdrop comes from .modal */
.auth-modal .container.cognito-modal {
    width: 900px;
    max-width: 100%;
    min-height: 580px;
}
.auth-modal .cognito-modal .title { font-size: 30px; }
.auth-modal .cognito-modal .sub-title {
    font-size: 16px !important;
    display: block;
    max-width: 100%;
    white-space: normal !important; /* site css was keeping the text on one line */
    overflow-wrap: break-word;
    line-height: 1.4;
    text-align: center;
}
.auth-modal .cognito-modal .header-text { font-size: 39px; }
.auth-modal .cognito-modal .signin-btn,
.auth-modal .cognito-modal button.ghost {
    border-radius: 39px !important;
    padding: 10px 40px !important;
}
.auth-modal .container.cognito-modal > .close-btn {
    top: 8px;
    right: 14px;
    z-index: 200;
    padding: 0 10px !important;
    font-size: 30px;
    line-height: 1;
    color: #fff;
}
@media screen and (max-width: 768px) {
    .auth-modal .container.cognito-modal { min-height: 500px; }
    .auth-modal .container.cognito-modal > .close-btn { color: #333; }
}
