:root{
    --add10: #EEF3FA;
    --add25: #CFDDF1;
    --add50: #9AB8DF;
    --add75: #6898CE;
    --add100: #0077BB;
    --rklight: #00BFFF;
    --rkdark: #080A82;
    --inspectorLight: #3EB4ED;
    --inspectorDark: #00597C;
    --back: #CFD8DC;
}
body {
    position: relative;
    padding: 0;
    margin: 0;
    font-family: 'Avenir Regular', Arial;
    &:is(.back-inspector){
        background-color: var(--add10);
        &::before{
            z-index: 19;
            content: '';
            clip-path: polygon(0 60%, 100% 20%, 100% 100%, 0% 100%);
            position: absolute;
            inset: 0;
            background-color: var(--inspectorLight);
        }
        &::after{
            content: '';
            clip-path: polygon(0 20%, 100% 10%, 100% 100%, 0% 100%);
            position: absolute;
            left: 0;
            top: 0;
            width: 20%;
            height: 100%;
            background-color: var(--add25);
            z-index: 18;
        }
        & section:is(#login-frame){
            display: flex;
            align-items: center;
        }
        & .g-recaptcha{
            display: flex;
            justify-content: center;
        }
        & form{
            position: relative;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
            animation-duration: 0.5s;
            animation-timing-function: ease;
            animation-fill-mode: forwards;
            color: darkslategrey;
            & .btn-backtohome{
                position: absolute;
                right: 10px;
                top: 5px;
                color: var(--add100);
                font-size: 30px;
                cursor: pointer;
            }
            .group, .birth-group {
                margin: 10px 0;
            }
        }
    }
    
    &:is(.back-rk){
        background-image: linear-gradient(to right top, #00bfff, #0095e9, #006ace, #003fac, #080a82);
    }
}
@keyframes getOut {
    from {
        left: 0px;
        opacity: 1;
    }
    to{
        left: -200%;
        opacity: 0;
    }
}
main{
    position: relative;
    z-index: 20;
    color: white;
    margin: 0px auto;
    width: calc(100% - 200px);
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}
#inspector-main{
    grid-template-columns: 600px;
    justify-content: center;
    margin-top: 30px;
}
.title{
    text-align: center;
    color: var(--rkdark);
    display: none;
}
/* section{ height: 100%;} */
form{
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    /* height: 600px; */
    width: 80%;
    /* max-width: 535px; */
    margin: 0px auto;
    background: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 5px;
    display: grid;
    grid-template-rows: 1fr 1fr;

}
/* form .email::before{
    content: "\40";
    font: var(--fa-font-solid);
} */
form button{
    background-color: var(--rkdark);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 5px 30px;
    margin: 20px auto 5px;
    transition: transform 0.5s linear, background-color 0.5s linear;
}
form button:disabled{ background-color: lightgray; }
form button:enabled:hover{
    transform: scale(1.1);
    background-color: var(--add100);
}
#login-frame{ 
    display: flex;
    align-items: center; 
}
#description{ 
    display: flex;
    align-items: center; 
 }
#login-frame #chk-agree{
    width: 20px;
    height: 20px;
    vertical-align: sub;
    cursor: pointer;
}
#login-frame input{
    width: 80%;
    margin: 0 auto;
    border-radius: 8px;
    border: 1px solid lightgray;
    padding: 5px 10px;
    color: darkslategray;
}
#login-frame input:focus-visible{ outline: none; }
#login-frame label{
    width: 75%;
    text-align: left;
    font-size: 0.8em;
    margin-top: 10px;
}
/* #login-frame .email:user-invalid */
#login-frame :is(.email, .name, .business, .last-name, .birthday):not(:placeholder-shown):invalid{ border: 2px solid #FFCDD2; }
#login-frame :is(.email, .name, .business, .last-name, .birthday):not(:placeholder-shown):valid{ border: 2px solid #C8E6C9; }

fieldset{
    text-align: center;
}
legend{
    /* color: var(--rklight); */
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin: 0;
}
#description > div{
    height: 600px;
    background-color: white; /* rgba(255, 255, 255, 0.7) */
    color: darkslategrey;
    /* backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); */
    border-radius: 8px;
    padding: 10px 30px;
    /* margin-top: 10px; */
}
#description img{
    width: 200px;
    margin: 10px 0;
}
.g-recaptcha{
    /* width: 80%;
    margin: 0px auto; */
    display: flex;
    justify-content: center;
}
#ps{
    text-align: center;
    background-color: white;
    color: var(--rkdark);
    border-radius: 30px;
    padding: 5px 20px;
    display: grid;
    grid-template-columns: 1fr 30px;
    align-items: center;
}
#ps input{
    text-align: center;
    border: none;
}
#ps input:focus-visible{
    outline: none;
}
#ps i{
    cursor: pointer;
    animation-duration: 0.3s;
    animation-timing-function: linear;
}
@keyframes changeIcon{
    50%{transform: scale(0.3);}
    100%{transform: scale(1);}
}
#div_password{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    z-index: 20;
    align-items: center;
    align-content: center;
    justify-items: center;
}
#created-password{
    background-color: var(--rklight);
    width: 50%;
    color: white;
    margin: 10px;
    border-radius: 8px;
    padding: 20px;
    /* justify-self: center; */
}
.resend-email{
    margin-bottom: 5px;
    p{
        margin: 0;
        display: inline-block;
    }
    button{
        border: none;
        background-color: transparent;
        color: var(--inspectorLight);

        &:hover{
            text-decoration: underline;
            text-underline-offset: 2px;
            text-decoration-thickness: 2px;
        }
    }
}
.btn-free{
    height: 42px;
    margin-top: 10px;
    display: inline-block;
    background-color: var(--rkdark);
    color: white;
    border:none;
}
.btn-free:hover{ opacity: 0.9; }
.small-message{
    --_bgColor: #E5EEF1;
    --_color: #00597C;
    display: none;
    max-width: 350px;
    background-color: var(--_bgColor);
    border: 1px solid var(--_color);
    color: black;
    min-height: 50px;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: fixed;
    bottom: 50px;
    right: 50px;
    display: grid;
    grid-template-columns: 35px 1fr;
    align-items: center;
    column-gap: 5px;

    i{ color: var(--_color); }
    .title{ text-align: left; font-family: "GothamBold"; }
    .message{ color: slategray; }
    &.bg-done{ --_bgColor:#E8F5E9; --_color:#2E7D32; }
    &.bg-information{ --_bgColor:#E5F8FF; --_color:#00BFFF; }
    &.bg-warn{ --_bgColor:#FFFDE7; --_color:#F57F17; }
    &.bg-error{ --_bgColor:#FBE9E7; --_color:#BF360C; }
}
.terms{ margin: 20px auto; width: 80%; }
.terms a{ color: var(--rkdark); }
/* .p-title{ color: var(--rkdark); } */

/* .plan-details{
    background-color: var(--rkdark);
    color: white;
    border-radius: 10px;
    padding: 10px 30px;
    width: fit-content;
}
#slt-rk-type{
    margin: 10px auto;
    width: 80%;
} */
/* Inspector */
.inspector-login form{
    grid-template-rows: 1fr auto; /* 1fr auto 1fr */
    /* background-color: rgba(255,255,255,0.5); */
    background-color: white;
}
#login-frame .name-group label{ width: 100%;}
#login-frame .name-group input{ width: 100%;}
#login-frame .name-group{
    width: 80%;
    margin: 0px auto;
}
#login-frame .birth-group{
    width: 80%;
    text-align: left;
    margin: 0px auto;
}
#login-frame #country{
    width: 80%;
    margin: 0px auto 10px;
}
#login-frame .birth-group input{ width: 49%;}
#login-frame .account-type{
    display: none;
    justify-content: center;
    width: 80%;
    height: 50px;
    margin: 0px auto;
    border-radius: 8px;
    background-color: var(--back);
}
#login-frame .account-type input{
    width: 20px;
    height: 20px;
    vertical-align: sub;
    box-shadow: none;
}
#login-frame .account-type label{
    font-size: inherit;
    cursor: pointer;
    align-self: center;
    width: 40%;
}
#description.inspector-description > div{
    height: initial;
}
form .select2-container{
    margin: 0px auto 15px;
}
#created-password .button-container{
    display: flex;
    justify-content: center;
    column-gap: 20px;
}
#created-password .button-container > button{
    /* width: 180px; */
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 5px 10px;
    flex: 1 0 0;
    background-color: var(--rkdark);
    color: white;
}
#created-password .button-container > button:is(.btn-h-inspector, .btn-store){ background-color: var(--inspectorDark);}
#referral-code{
    font-size: 14px;
}
#gift-code {
    width: 55%;
    margin: 0 auto;
    font-weight: bold;
    font-size: 22px;
    color: darkslategrey;
    text-align: center;

    > div{
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    > p{
        font-size: 16px;
        font-weight: initial;
    }
}
.select2-container .select2-selection--single{
    height: 35px;
}
.select2-container--default .select2-selection--single {
    .select2-selection__rendered{
        line-height: 34px;
    }
    .select2-selection__arrow {
        height: 33px;
    }
}

@media (width <= 1000px){
    main{
        grid-template-columns: 1fr;
    }
}
@media (width <= 650px){
    main{
        width: 100%;
        margin: 0 auto;
        row-gap: 10px;
    }
    form{ width: 95%;}
    #description > div {
        width: 95%;
        margin: 0 auto;
    }
    #login-frame input{
        width: 90%;
    }
    #login-frame label{
        width: 90%;
    }
    /* .g-recaptcha{
        margin-left: 0px;
    } */
}