:root {
    --hcsrs-height: 50px;
}

body.hexo-custom-srs .right-body .main-form #pass-and-repass,
body.hexo-custom-srs .right-body .main-form #re-new-password-strength-message,
body.hexo-custom-srs .right-body .main-form #new-password-strength-message {
    margin: 5px;
    font-weight: 700;
}

body.hexo-custom-srs .right-body .main-form #pass-and-repass {
    text-align: center;
    display: none;
    color: red;
}

body .short-pass {
    color: red;
}

body .weak-pass {
    color: red;
}

body .good-pass {
    color: forestgreen;
}

body .strong-pass {
    color: green;
}

body .password p,
body .re-password,
body .re-password p {
    margin-bottom: 0px;
}

body .title-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 10px;
}

body .title-container h1 {
    margin: 0px;
    margin-bottom: 0px;
    color: black;
    font-size: 22px;
    margin-left: 5px;
}

body .title-container a.top {
    margin-bottom: 0px;
    margin-top: 5px;
}

html:has(body.hexo-custom-srs) {
    height: 100%;
}

html:has(body.hexo-custom-srs)[dir=rtl][lang] {
    background: linear-gradient(-45deg, var(--hcsrs-first-gradient-color), var(--hcsrs-second-gradient-color), var(--hcsrs-third-gradient-color), var(--hcsrs-fourth-gradient-color)) !important;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

body.hexo-custom-srs {
    color: #6a6a6a;
    font-size: 14px;
    margin: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: linear-gradient(-45deg, var(--hcsrs-first-gradient-color), var(--hcsrs-second-gradient-color), var(--hcsrs-third-gradient-color), var(--hcsrs-fourth-gradient-color)) !important;
    background-size: 125% 125%;
    animation: gradient 15s ease-out infinite;
}

body.hexo-custom-srs .main {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 0;
    margin: 0;
    background-color: #fff;
    border-radius: 10px;
    width: 75vw;
    box-shadow: 0px 6px 11px -7px rgb(0 0 0 / 30%);
}

body.hexo-custom-srs .main.column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.hexo-custom-srs .right-body {
    width: 50%;
    text-align: right;
    direction: rtl;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.hexo-custom-srs .left-body {
    width: 50%;
    position: relative;
    border-radius: 10px 0px 0px 10px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    display: flex;
    background: linear-gradient(-45deg, var(--hcsrs-first-logo-gradient-color), var(--hcsrs-second-logo-gradient-color)) !important;
}

body.hexo-custom-srs .right-body .main-form {
    margin: 10em 7.5em;
    color: #888;
    direction: ltr;
}

[dir="rtl"] body.hexo-custom-srs .right-body .main-form {
    direction: rtl;
}

body.hexo-custom-srs .main-validation {
    color: rgb(253, 61, 61);
    margin-top: 2em;
    margin-right: 1em;
}

body .hexo-custom-srs-auth-shortcode {
    width: 100%;
}

body .main-input-row {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
}

body .main-links-row {
    margin-top: 18px;
    margin-bottom: 0;
    direction: ltr;
    text-align: start;
    gap: 8px;
}

[dir="rtl"] body .main-links-row {
    direction: rtl;
}

body .main-links-row a {
    font-size: 0.9em;
    line-height: 1.6;
}

body.hexo-custom-srs .right-body .main-form .main-input-row input.main-input,
body .hexo-custom-srs-auth-shortcode .main-input-row input.main-input {
    display: block;
    width: 100% !important;
    height: var(--hcsrs-height);
    box-sizing: border-box;
    direction: ltr;
    background-color: #fff;
    padding: 0 14px;
    border: 1px solid #d7d7d7;
    border-radius: 10px;
    outline: none;
    text-align: left;
    font-size: 14px;
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.hexo-custom-srs .right-body .main-form .main-input-row input.main-input:focus,
body .hexo-custom-srs-auth-shortcode .main-input-row input.main-input:focus {
    border-color: var(--hcsrs-primary-color);
    box-shadow: 0 0 0 3px rgb(0 0 0 / 6%);
}

[dir="rtl"] body.hexo-custom-srs .right-body .main-form .main-input-row input.main-input,
[dir="rtl"] body .hexo-custom-srs-auth-shortcode .main-input-row input.main-input {
    text-align: right;
}

[dir="rtl"] body.hexo-custom-srs .right-body .main-form .main-input-row input#identifier,
[dir="rtl"] body .hexo-custom-srs-auth-shortcode .main-input-row input#identifier,
[dir="rtl"] body.hexo-custom-srs .right-body .main-form .main-input-row input#password,
[dir="rtl"] body .hexo-custom-srs-auth-shortcode .main-input-row input#password,
[dir="rtl"] body.hexo-custom-srs .right-body .main-form .main-input-row input#re-password,
[dir="rtl"] body.hexo-custom-srs .right-body .main-form .main-input-row input#userphone,
[dir="rtl"] body.hexo-custom-srs .right-body .main-form .main-input-row input#otp,
[dir="rtl"] body.hexo-custom-srs .right-body .main-form .main-input-row input#email {
    direction: ltr;
    text-align: left;
}

body.hexo-custom-srs .right-body .main-form .main-input-row .main-label,
body .hexo-custom-srs-auth-shortcode .main-input-row .main-label {
    position: static;
    display: inline-block;
    align-self: flex-start;
    padding: 0 2px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: text;
    background-color: transparent;
    color: #555;
    line-height: 1.4;
}

body.hexo-custom-srs .right-body .main-form .buttons-container,
body .hexo-custom-srs-auth-shortcode .buttons-container {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    flex-direction: row;
    width: 100%;
    direction: ltr;
    gap: 10px;
}

[dir="rtl"] body.hexo-custom-srs .right-body .main-form .buttons-container,
[dir="rtl"] body .hexo-custom-srs-auth-shortcode .buttons-container {
    direction: rtl;
}

body.hexo-custom-srs .right-body .main-form .buttons-container .main-btn,
body .hexo-custom-srs-auth-shortcode .buttons-container .main-btn {
    flex: 1 1 0;
    min-width: 0;
    height: var(--hcsrs-height);
    background-color: var(--hcsrs-primary-color);
    color: #fff;
    font-weight: 500;
    border-radius: 10px;
    font-size: 1em;
    line-height: 1.4;
    border: 1px solid var(--hcsrs-primary-color);
    margin: 0;
    outline: none;
    text-align: center;
    box-shadow: none;
    display: block;
    padding: 0 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

body.hexo-custom-srs .right-body .main-form .buttons-container .main-btn.password-login,
body .hexo-custom-srs-auth-shortcode .buttons-container .main-btn.password-login {
    background-color: #fff;
    color: var(--hcsrs-primary-color);
}

body.hexo-custom-srs .right-body .main-form .buttons-container .main-btn:hover:not(:disabled),
body .hexo-custom-srs-auth-shortcode .buttons-container .main-btn:hover:not(:disabled) {
    filter: brightness(0.96);
}

body.hexo-custom-srs .right-body .main-form .buttons-container .main-btn:active:not(:disabled),
body .hexo-custom-srs-auth-shortcode .buttons-container .main-btn:active:not(:disabled) {
    transform: translateY(1px);
}

body.hexo-custom-srs .right-body .main-form .buttons-container input,
body .hexo-custom-srs-auth-shortcode .buttons-container input {
    cursor: pointer;
}

body.hexo-custom-srs .left-body img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

body.hexo-custom-srs .right-body .main-form a {
    color: var(--hcsrs-primary-color);
    text-decoration: none;
    margin-bottom: 5px;
}

body #password-toggle {
    position: absolute;
    top: 40px;
    right: 18px;
    cursor: pointer;
}

body.hexo-custom-srs .right-body .main-form .error,
body .hexo-custom-srs-auth-shortcode .error,
body.hexo-custom-srs .right-body .main-form .success,
body .hexo-custom-srs-auth-shortcode .success,
body.hexo-custom-srs .right-body .main-form .signup,
body .hexo-custom-srs-auth-shortcode .signup,
body.hexo-custom-srs .right-body .main-form .resetpassword,
body .hexo-custom-srs-auth-shortcode .resetpassword,
body.hexo-custom-srs .right-body .main-form .logout,
body .hexo-custom-srs-auth-shortcode .logout,
body.hexo-custom-srs .right-body .main-form .redirect,
body .hexo-custom-srs-auth-shortcode .redirect {
    display: block;
    margin: 0 0 14px;
    font-weight: 600;
    line-height: 1.7;
    text-align: start;
}

body.hexo-custom-srs .right-body .main-form .error,
body .hexo-custom-srs-auth-shortcode .error {
    color: red;
}

body.hexo-custom-srs .right-body .main-form .success,
body .hexo-custom-srs-auth-shortcode .success,
body.hexo-custom-srs .right-body .main-form .signup,
body .hexo-custom-srs-auth-shortcode .signup,
body.hexo-custom-srs .right-body .main-form .resetpassword,
body .hexo-custom-srs-auth-shortcode .resetpassword {
    color: green;
}

body.hexo-custom-srs .right-body .main-form .logout,
body .hexo-custom-srs-auth-shortcode .logout {
    color: orange;
}

body.hexo-custom-srs .right-body .main-form .redirect,
body .hexo-custom-srs-auth-shortcode .redirect {
    color: var(--hcsrs-fourth-gradient-color);
}

body.hexo-custom-srs .right-body .main-form .redirect .redirect-title,
body .hexo-custom-srs-auth-shortcode .redirect .redirect-title {
    color: var(--hcsrs-primary-color);
    font-weight: 700;
}

body.hexo-custom-srs .right-body .main-form .error:empty,
body .hexo-custom-srs-auth-shortcode .error:empty,
body.hexo-custom-srs .right-body .main-form .success:empty,
body .hexo-custom-srs-auth-shortcode .success:empty,
body.hexo-custom-srs .right-body .main-form .signup:empty,
body .hexo-custom-srs-auth-shortcode .signup:empty,
body.hexo-custom-srs .right-body .main-form .resetpassword:empty,
body .hexo-custom-srs-auth-shortcode .resetpassword:empty,
body.hexo-custom-srs .right-body .main-form .logout:empty,
body .hexo-custom-srs-auth-shortcode .logout:empty,
body.hexo-custom-srs .right-body .main-form .redirect:empty,
body .hexo-custom-srs-auth-shortcode .redirect:empty {
    display: none;
    margin: 0;
}

body.hexo-custom-srs .right-body .main-form .error a,
body .hexo-custom-srs-auth-shortcode .error a {
    display: none;
}

body.hexo-custom-srs .right-body .main-form .buttons-container .main-btn.otp-resend:disabled,
body .hexo-custom-srs-auth-shortcode .buttons-container .main-btn.otp-resend:disabled {
    background-color: #aaa;
    border-color: #aaa;
    color: #fff;
    cursor: default;
    opacity: 0.75;
}

@media (max-width: 1267px) {
    .main {
        width: 92vw;
    }
}

@media (max-width: 992px) {
    body .main {
        flex-direction: column-reverse;
        width: 100%;
    }

    body.hexo-custom-srs .right-body .main-form {
        margin: 3.5em;
    }

    body.hexo-custom-srs .main {
        flex-direction: column-reverse;
    }

    body.hexo-custom-srs .right-body {
        width: 100%;
    }

    body.hexo-custom-srs {
        padding: 0px 30px;
    }

    body.hexo-custom-srs .left-body {
        width: 100%;
        border-radius: 10px;
        padding: 50px 0px;
    }

    body.hexo-custom-srs .main-container {
        width: 100%;
    }

    body.hexo-custom-srs .main-form {
        margin: 2em 1.5em;
        color: #888;
    }

    body.hexo-custom-srs .left-body img {
        width: 130px;
        height: auto;
    }

    body.hexo-custom-srs .right-body .main-form .buttons-container,
    body .hexo-custom-srs-auth-shortcode .buttons-container {
        flex-direction: column;
    }

    body.hexo-custom-srs .right-body .main-form .buttons-container .main-btn,
    body .hexo-custom-srs-auth-shortcode .buttons-container .main-btn {
        padding: 12px !important;
    }
}

@media (max-width: 300px) {
    body.hexo-custom-srs .left-body img {
        width: 60px;
        height: auto;
    }
}

@media (max-width: 500px) {
    body.hexo-custom-srs .left-body img {
        width: 100px;
        height: auto;
    }

    body.hexo-custom-srs .right-body .main-form {
        margin: 2em;
    }
}

@media (max-height: 600px) {
    html:has(body.hexo-custom-srs) {
        height: auto;
    }

    body.hexo-custom-srs {
        height: auto !important;
        padding: 40px 30px;
    }
}

@media (max-width: 450px) {
    body.hexo-custom-srs .right-body .main-form .main-input-row .main-label,
    body .hexo-custom-srs-auth-shortcode .main-input-row .main-label {
        font-size: 13px;
    }
}

@media (max-width: 400px) {
    body.hexo-custom-srs .right-body .main-form .buttons-container .main-btn,
    body .hexo-custom-srs-auth-shortcode .buttons-container .main-btn {
        width: 100%;
        font-size: 13px;
    }

    body.hexo-custom-srs .right-body .main-form .main-input-row input.main-input,
    body .hexo-custom-srs-auth-shortcode .main-input-row input.main-input {
        height: 48px;
        font-size: 14px;
    }
}