html {
    background-repeat: no-repeat;
    background-position: center center;
    -webkit-background-size: inherit;
    -moz-background-size: inherit;
    -o-background-size: inherit;
    background-size: inherit;
    overflow: hidden;
    height: 100vh;
    direction: rtl;
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;

}
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}


::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}


::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}


::-webkit-scrollbar-thumb:hover {
    background: #555;
}

body{
    background-color: transparent;
    padding: 0 10px !important;
}

.text-box {
    margin-bottom: 40px;
}

/* Login container */
#container-login {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#container-login-form , #container-reset-form {
    padding: 40px;
    margin: 0 auto;
    width: 320px;
    /*height: 300px;*/
    border-radius: 5px;
    /*background: rgba(3,3,3,0.25);*/
    box-shadow: 1px 1px 50px #000;
    background-color: rgba(0, 0, 0, 0.32);
}
#container-reset-form{
    display: none;
}
#container-login-form .error ,#container-reset-form .error {
    color: red;
    font-size: 0.8rem;
    display: block;
    margin-top: -7px;
}
.alert.error {
    color: #ff5555 !important;
    width: 100%;
    background-color: rgb(255 83 83 / 43%);
    font-size: 0.8rem;
    display: block;
    margin-top: -7px;
    padding: 5px;
    border: 1px solid #ff5555;
    border-radius: 10px;
    margin-bottom: 10px;
}
.alert.success {
    color: #19f623 !important;
    width: 100%;
    background-color: rgba(200, 251, 136, 0.43);
    font-size: 0.8rem;
    display: block;
    margin-top: -7px;
    padding: 5px;
    border: 1px solid #19f623;
    border-radius: 10px;
    margin-bottom: 10px;
}
#container-login-form h2 , #container-reset-form h2 {
    margin-top: 0;
    text-align: center;
    color: #ececec;
}

@media (max-width: 480px) {
    #container-login-form , #container-reset-form {
        width: 300px;
    }
}
.close-btn {
    position: absolute;
    cursor: pointer;
    font-family: 'Open Sans Condensed', sans-serif;
    line-height: 18px;
    top: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    text-align: center;
    border-radius: 10px;
    opacity: .2;
    -webkit-transition: all 2s ease-in-out;
    -moz-transition: all 2s ease-in-out;
    -o-transition: all 2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

.close-btn:hover {
    opacity: .5;
}

/* Heading */
.page-title {
    font-family: 'Open Sans Condensed', sans-serif;
    position: relative;
    margin-top: 0px;
    text-align: center;
    font-size: 2rem;
    color: #ddd;
    text-shadow: 3px 3px 10px #000;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 1.5rem;
    }
}


@media (max-width: 480px) {
    .page-title {
        font-size: 1.2rem;
        line-height: 1.2;
        text-shadow: 2px 2px 5px #000;
    }
}

.page-description {
    color: #cccccc;
    text-align: center;
    padding: 24px 0;
}

/* Inputs */
input.input-login {
    font-family: 'IRANSans', sans-serif;
    position: relative;
    width: 100%;
    display: block;
    margin: 9px auto;
    font-size: 17px;
    color: #fff;
    padding: 8px;
    border-radius: 6px;
    border: none;
    background: rgba(3, 3, 3, .1);
    -webkit-transition: all 2s ease-in-out;
    -moz-transition: all 2s ease-in-out;
    -o-transition: all 2s ease-in-out;
    transition: all 0.2s ease-in-out;
}
input.input-login.resetPass{
    font-size: 14px !important;
    padding: 9px;
}
input.input-login::placeholder{
    color: #d3d3d1;
}
button.btn-login {
    background: rgba(107, 255, 3, 0.5);
    font-family: 'IRANSans', sans-serif;
    text-decoration: none;
    position: relative;
    width: 100%;
    display: block;
    margin: 9px 0;
    font-size: 17px;
    color: #fff;
    padding: 8px;
    border-radius: 6px;
    border: none;
    -webkit-transition: all 2s ease-in-out;
    -moz-transition: all 2s ease-in-out;
    -o-transition: all 2s ease-in-out;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

input:focus {
    outline: none;
    box-shadow: 3px 3px 10px #333;
    background: rgba(3, 3, 3, .18);
}

/* Placeholders */
::-webkit-input-placeholder {
    color: #ddd;
}

:-moz-placeholder { /* Firefox 18- */
    color: red;
}

::-moz-placeholder { /* Firefox 19+ */
    color: red;
}

:-ms-input-placeholder {
    color: #333;
}

/* Link */
a {
    font-family: 'IRANSans', sans-serif;
    text-align: center;
    padding: 4px 8px;
    text-decoration: none;

}

a:hover {
    opacity: 0.7;
}

#remember-container {
    position: relative;
    font-family: 'IRANSans', sans-serif;
}

.checkbox {
    position: relative;
    cursor: pointer;
    -webkit-appearance: none;
    padding: 5px;
    border-radius: 4px;
    background: rgba(3, 3, 3, .2);
    display: inline-block;
    width: 16px;
    height: 15px;
}

#checkbox-2-1 {
    margin-top: 10px;
}

.checkbox:checked:active {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0px 1px 3px rgba(0, 0, 0, 0.1);
}

.checkbox:checked {
    background: rgba(3, 3, 3, .4);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0px -15px 10px -12px rgba(0, 0, 0, 0.05), inset 15px 10px -12px rgba(255, 255, 255, 0.5);
    color: #fff;
}

.checkbox:checked:after {
    content: '\2714';
    font-size: 10px;
    position: absolute;
    top: 0px;
    left: 4px;
    color: #fff;
}

#remember {
    position: absolute;
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
    top: 7px;
    right: 20px;
}

#forget {
    position: absolute;
    font-size: 12px;
    color: rgba(255, 255, 255, .5);
    left: 0;
    top: 8px;
    cursor: pointer;
    -webkit-transition: all 2s ease-in-out;
    -moz-transition: all 2s ease-in-out;
    -o-transition: all 2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

.sign-in-box {
    margin: 15px 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 106%;
}

.sign-in-box button {
    margin: 0;
    display: block;
    background-color: rgba(0, 0, 0, 0);
    outline: 0;
    border: 0;
    color: dodgerblue;
    cursor: pointer;
}
#backToLogin{
    margin: 0;
    display: block;
    background-color: rgba(0, 0, 0, 0);
    outline: 0;
    border: 0;
    cursor: pointer;
    color: rgba(255, 255, 255, .5);
}
.hr-text {
    line-height: 1em;
    position: relative;
    outline: 0;
    border: 0;
    color: black;
    text-align: center;
    height: 1.5em;
    opacity: 0.5;
    width: 100%;
}
.hr-text:before {
    content: '';
    background: linear-gradient(to right, transparent, #818078, transparent);
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
}
.hr-text:after {
    content: attr(data-content);
    position: relative;
    display: inline-block;
    padding: 0 0.5em;
    line-height: 1.5em;
    color: #818078;
    background-color: #fcfcfa;
    border-radius: 10px;
    font-weight: 300;
    font-size: 0.85rem;
}


/*===============================
 register
===============================*/

.register-wrap{
    margin-top: 31px;
    height: calc(100vh - 50px);
    background-color: #ffffffb8;
    color: hsl(204deg 80.25% 15.88%);
}
.preview{
    width: 150px;
    border-radius: 8px;
    border: 2px dashed #e3e3e3;
    aspect-ratio: 3/4;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffffb0;
    cursor: pointer;
}
.register-wrap form .row{
    max-width: 720px;
    margin: auto;
}
.preview-identity{
    width: 100%;
    max-width: 100px;
    border-radius: 8px;
    border: 2px dashed #e3e3e3;
    aspect-ratio: 3/4;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffffb0;
    cursor: pointer;
}
.preview-national{
    width: 100%;
    max-width: 253px;
    border-radius: 8px;
    border: 2px dashed #e3e3e3;
    aspect-ratio: 5/3;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffffb0;
    cursor: pointer;
}

.preview-education-doc{
    width: 250px;
    border-radius: 8px;
    border: 2px dashed #e3e3e3;
    aspect-ratio: 5/3;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffffb0;
    cursor: pointer;
}

.upload-progress {
    height: 4px;
    background-color: #e0e0e0;
    overflow: hidden;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 0 0 4px 4px;
}

.upload-progress::before {
    content: '';
    position: absolute;
    background-color: #3498db;
    height: 100%;
    width: 0%;
    animation: loading 2s ease-in-out forwards;
}

.upload-progress.active::before {
    animation: loading 2s ease-in-out forwards;
}

@keyframes loading {
    0% { width: 0%; }
    100% { width: 100%; }
}
