html{
    direction: rtl;
}
.custom-login {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-width: 100%;
    min-height: 100vh;
    background: var(--bs-white);
}

.custom-login .custom-login-inner {
    width: 100%;
    max-width: 1300px;
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    padding: 15px;
    padding-top: 80px;
}

.custom-login .dash-header {
    position: relative;
    right: 0;
    top: 0;
    left: 0;
    box-shadow: none;
    min-height: auto;
}
.dash-header:not(.transprent-bg){
    right: auto !important;
}

.custom-login .dash-header .dash-h-item {
    min-height: auto;
}

.custom-login .dash-header .navbar-brand {
    padding: 0;
}

.custom-login .dash-header .navbar-brand a {
    display: block;
    line-height: 1;
}

.custom-login .dash-header .navbar-brand a .logo {
    width: 100%;
}

.custom-login .bg-login {
    content: "";
    top: 0;
    right: 50%;
    left: 0;
    bottom: 0;
    border-radius: 0px;
    position: absolute;
    transform-origin: bottom;
    background: var(--bs-green);
}

.custom-login .navbar {
    background: var(--bs-white);
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    box-shadow: 0 6px 30px rgba(182, 186, 203, 0.3);
    padding: 10px 0;
}

.custom-login .navbar .navbar-collapse {
    justify-content: flex-end;
}

.custom-login .navbar .nav-link {
    padding: 1px 20px;
    position: relative;
    font-weight: 500;
    color: var(--bs-dark);
}

.custom-login .navbar .nav-item .nav-link::after {
    content: "";
    display: block;
    position: absolute;
    height: 100%;
    width: 2px;
    background: #000000;
    top: 0;
    left: 0;
}

.custom-login .navbar .nav-item:last-of-type .nav-link::after {
    display: none;
}

.custom-login .card {
    box-shadow: none;
}

.custom-login .custom-wrapper {
    padding: 80px 0 40px;
    max-width: 1170px;
    width: 100%;
    display: flex;
    align-items: center;
    flex: 1;
    margin: 0 auto;
}

.custom-login .custom-wrapper .custom-row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    z-index: 9;
}

.custom-login .custom-wrapper .card .card-body {
    background-color: var(--bs-white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    max-width: 440px;
    width: 100%;
    margin-right: 0;
    box-shadow: 0px 0px 25px 0px #0000000d;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

.custom-login .custom-login-form .for-pwd {
    font-size: 13px;
    line-height: 1;
}

.custom-login .custom-login-form .login-btn {
    margin-bottom: 20px;
}

.custom-login .custom-login-form .remember-check {
    font-size: 13px;
}

.custom-login .custom-login-form .field-icon {
    position: absolute;
    top: 58%;
    left: 10px;
    line-height: 1;
}

.custom-login .custom-login-form .pss-field {
    position: relative;
}

.custom-login a {
    color: var(--bs-green);
}

.custom-login .custom-wrapper .card .card-body h2 span {
    color: var(--bs-green);
    font-weight: 400;
}

.custom-login .form-control:focus {
    border-color: var(--bs-green);
    box-shadow: 0 0 0 0.2rem rgba(12, 175, 96, 0.25);
}

.custom-login .form-check-input:checked {
    background-color: var(--bs-green);
    border-color: var(--bs-green);
}

.custom-login .autorized-btn {
    gap: 15px;
    justify-content: space-between;
    margin-top: 20px;
}

.custom-login .autorized-btn .btn {
    max-width: 47%;
    width: 100%;
}

.custom-login .drp-language .drp-text {
    margin-left: 5px;
}

.custom-login .drp-language a span {
    color: #000000 !important;
}

.custom-login .dropdown-toggle::after {
    content: "";
    position: absolute;
    height: 6px;
    width: 9px;
    left: 10px;
    top: 18px;
    background: url(../images/down-arrow.svg);
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: center center;
    -webkit-transition: all ease-in-out .5s;
    -moz-transition: all ease-in-out .5s;
    -ms-transition: all ease-in-out .5s;
    -o-transition: all ease-in-out .5s;
    transition: all ease-in-out .5s;
    border: 0;
}

.custom-login .drp-language .btn {
    background: #F5F5F5;
    border-radius: 6px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    -ms-border-radius: 6px;
    -o-border-radius: 6px;
    margin: 0;
    padding: 10px 10px 10px 25px;
}

.custom-login .drp-language .btn.show {
    border-color: #F5F5F5;
}

.custom-login .custom-img img {
    max-width: 540px;
    width: 100%;
    margin: auto;
    display: block;
}
.custom-login .card {
    margin-bottom: 0;
    background-color: transparent;
    width: 440px;
}
.custom-login .custom-wrapper .card .card-body{
    box-shadow: 0px 0px 25px 0px rgb(0 0 0 / 10%);
    border-radius: 20px !important;
    padding: 20px;
}
.login-bg-1{
    position: absolute;
    bottom: 0;
    right: 10%;
    z-index: 1;
    transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    -moz-transform: scaleX(-1);
    -ms-transform: scaleX(-1);
    -o-transform: scaleX(-1);
}
.login-bg-2{
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
    transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    -moz-transform: scaleX(-1);
    -ms-transform: scaleX(-1);
    -o-transform: scaleX(-1);
}
.auth-footer{
    position: relative;
    z-index: 1;
    text-align: center;
}
.navbar-collapse .navbar-nav.align-items-center{
    padding-right: 0;
    margin-right: auto;
    margin-left: 0 !important;
}

@media only screen and (max-width: 1439px) {
    .login-bg-1 {
        position: absolute;
        bottom: 0;
        right: 0%;
        z-index: 1;
        max-height: 500px;
    }
}


@media only screen and (max-width: 1300px) {
    .custom-login .card .custom-img img {
        max-width: 100%;
    }
    .login-bg-1 {
        position: absolute;
        bottom: 0;
        right: 0%;
        z-index: 1;
        max-height: 500px;
    }
}

@media only screen and (max-width: 1199px) {
    .custom-login .custom-wrapper .card .card-body {
        margin: auto;
    }
}

@media only screen and (max-width: 991px) {
    .custom-login .custom-wrapper {
        padding: 80px 0 20px;
    }
    .custom-login .navbar .nav-link {
        padding: 0px 15px;
    }
    .auth-footer {
        text-align: center;
    }
    .login-bg-1,.login-bg-2{
       display: none;
    }
}

@media only screen and (max-width: 767px) {
    .custom-login .dash-header .navbar-brand {
        max-width: 120px;
    }

    .custom-login .navbar .nav-item .nav-link::after {
        display: none;
    }

    .custom-login .navbar .nav-link {
        padding: 10px 20px;
    }

    .custom-login .custom-wrapper .card .card-body {
        padding: 20px 15px;
    }

    .custom-login .navbar .navbar-collapse {
        text-align: center;
        margin-top: 20px;
    }

    .custom-login .dash-header .dash-h-item {
        display: block;
    }

    .custom-login .drp-language a {
        text-align: center;
    }
}

@media only screen and (max-width: 575px) {
    .custom-login .autorized-btn .btn {
        max-width: 100%;
    }
    .custom-login .card {
        width: 100%;
    }
    .custom-login-inner .dash-header {
        top: 60px !important;
    }
}

body.faith-login-page .custom-login {
    background: #f1ede3;
}

body.faith-login-page .custom-login .login-bg-img {
    display: none;
}

body.faith-login-page .custom-login .bg-login {
    right: 0;
    left: 0;
    background: #e5dcc3;
}

body.faith-login-page .custom-login .navbar {
    border: 1px solid #b9ad8c;
    box-shadow: none;
    background: #fffdf8;
}

body.faith-login-page .custom-login .custom-wrapper {
    max-width: 1240px;
}

body.faith-login-page .custom-login .custom-wrapper .custom-row > .card {
    width: min(100%, 1120px);
}

body.faith-login-page .faith-login-layout {
    display: grid;
    direction: ltr;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 500px);
    gap: 24px;
    align-items: stretch;
    width: 100%;
}

body.faith-login-page .faith-login-layout .auth-login-card {
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: 0;
    direction: rtl;
}

body.faith-login-page .faith-side-panel {
    position: relative;
    overflow: hidden;
    border: 2px solid #1f3556;
    border-radius: 16px;
    background: #efe6cf;
    padding: 34px 30px;
    box-shadow: 0 12px 26px rgba(16, 24, 40, 0.12);
    direction: rtl;
    text-align: right;
}

body.faith-login-page .faith-side-panel::before {
    content: "";
    position: absolute;
    top: 14px;
    right: 14px;
    bottom: 14px;
    left: 14px;
    border: 1px solid #b9ad8c;
    border-radius: 12px;
    pointer-events: none;
}

body.faith-login-page .faith-side-tag,
body.faith-login-page .faith-side-panel h2,
body.faith-login-page .faith-side-text,
body.faith-login-page .faith-side-verse,
body.faith-login-page .faith-side-points {
    position: relative;
    z-index: 2;
}

body.faith-login-page .faith-side-tag {
    display: inline-flex;
    padding: 6px 10px;
    border: 1px solid #1f3556;
    border-radius: 999px;
    background: #1f3556;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.faith-login-page .faith-side-panel h2 {
    margin: 14px 0 8px;
    color: #1f3556;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 800;
}

body.faith-login-page .faith-side-text {
    color: #42506a;
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
    max-width: 520px;
}

body.faith-login-page .faith-side-verse {
    margin-top: 20px;
    padding: 12px 14px;
    border: 1px solid #b9ad8c;
    border-radius: 10px;
    background: #f8f3e5;
    color: #1f3556;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

body.faith-login-page .faith-side-points {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

body.faith-login-page .faith-side-points span {
    border: 1px solid #1f3556;
    border-radius: 8px;
    padding: 6px 10px;
    background: #ffffff;
    color: #1f3556;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.faith-login-page .faith-side-ornaments {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

body.faith-login-page .faith-orb {
    position: absolute;
    border-radius: 50%;
    border: 2px solid #b9ad8c;
}

body.faith-login-page .faith-orb.orb-a {
    width: 160px;
    height: 160px;
    left: 24px;
    top: 34px;
    animation: faith-orb-a 8s ease-in-out infinite;
}

body.faith-login-page .faith-orb.orb-b {
    width: 92px;
    height: 92px;
    left: 170px;
    top: 70px;
    animation: faith-orb-b 7s ease-in-out infinite;
}

body.faith-login-page .faith-orb.orb-c {
    width: 130px;
    height: 130px;
    right: 32px;
    bottom: 28px;
    animation: faith-orb-c 9s ease-in-out infinite;
}

body.faith-login-page .faith-symbol {
    position: absolute;
    color: #1f3556;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

body.faith-login-page .faith-symbol.sym-a {
    right: 42px;
    top: 40px;
    animation: faith-symbol-a 4.6s ease-in-out infinite;
}

body.faith-login-page .faith-symbol.sym-b {
    left: 48px;
    bottom: 38px;
    animation: faith-symbol-b 5.2s ease-in-out infinite;
}

body.faith-login-page .faith-symbol.sym-c {
    left: 190px;
    top: 18px;
    animation: faith-symbol-c 5.8s ease-in-out infinite;
}

.custom-login .auth-login-card {
    width: min(100%, 500px);
}

.custom-login .auth-login-card .auth-login-card-body {
    position: relative;
    padding: 32px 30px;
    border-radius: 16px !important;
    border: 2px solid #b9ad8c;
    background: #f9f7f2;
    box-shadow: 0 12px 26px rgba(16, 24, 40, 0.12);
    animation: auth-card-in .35s ease-out;
}

.custom-login .faith-connection {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px;
    border: 2px solid #b9ad8c;
    border-radius: 12px;
    background: #ffffff;
}

.custom-login .faith-cross {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-width: 48px;
    height: 48px;
    border: 2px solid #1f3556;
    border-radius: 10px;
    color: #1f3556;
    font-size: 26px;
    line-height: 1;
}

.custom-login .faith-connection-copy h2 {
    margin: 0;
    color: #1f3556;
    font-size: 22px;
    font-weight: 700;
}

.custom-login .faith-connection-copy p {
    margin: 2px 0 0;
    color: #1f3556;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.custom-login .faith-connection-copy small {
    display: block;
    margin-top: 4px;
    color: #5f6778;
    font-size: 12px;
    line-height: 1.35;
}

.custom-login .auth-login-intro {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #cfc4a6;
}

.custom-login .auth-login-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #1f3556;
    background: #1f3556;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}

.custom-login .auth-login-copy {
    color: #4d5669;
    font-size: 14px;
    line-height: 1.5;
}

.custom-login .auth-login-form .form-label {
    font-size: 13px;
    font-weight: 700;
    color: #1f3556;
}

.custom-login .auth-field {
    padding-bottom: 8px;
}

.custom-login .auth-input-wrap {
    position: relative;
}

.custom-login .auth-input-icon {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: #1f3556;
    font-size: 16px;
}

.custom-login .auth-login-form .auth-input {
    border-radius: 8px;
    border: 1px solid #bdc6d8;
    background: #ffffff;
    padding-right: 42px;
    padding-inline-start: 42px;
    min-height: 45px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.custom-login .auth-login-form .auth-input:focus {
    border-color: #1f3556;
    box-shadow: 0 0 0 0.15rem rgba(31, 53, 86, 0.18);
}

.custom-login .auth-login-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 10px 0 14px;
    padding: 12px 0;
    border-top: 1px solid #d8ceb3;
    border-bottom: 1px solid #d8ceb3;
}

.custom-login .auth-login-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4b5466;
    font-size: 13px;
}

.custom-login .auth-login-remember .form-check-input {
    margin-top: 0;
}

.custom-login .auth-login-forgot {
    font-size: 13px;
    font-weight: 700;
    color: #1f3556;
    text-decoration: underline;
}

.custom-login .auth-login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    border-radius: 8px;
    font-weight: 700;
    border-color: #1f3556;
    background: #1f3556;
}

.custom-login .auth-login-submit:hover,
.custom-login .auth-login-submit:focus {
    border-color: #192c48;
    background: #192c48;
}

.custom-login .auth-login-divider {
    position: relative;
    margin: 18px 0 12px;
    text-align: center;
}

.custom-login .auth-login-divider::before {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    top: 50%;
    border-top: 1px solid #d8ceb3;
}

.custom-login .auth-login-divider span {
    position: relative;
    z-index: 1;
    background: #f9f7f2;
    padding: 0 10px;
    color: #5f6778;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.custom-login .auth-login-register {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #d8ceb3;
    color: #4b5466;
}

.custom-login .auth-login-register a {
    font-weight: 700;
    color: #1f3556 !important;
}

@keyframes auth-card-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes faith-orb-a {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes faith-orb-b {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

@keyframes faith-orb-c {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

@keyframes faith-symbol-a {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.72;
    }
    50% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

@keyframes faith-symbol-b {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.72;
    }
    50% {
        transform: translateY(6px);
        opacity: 1;
    }
}

@keyframes faith-symbol-c {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

@media only screen and (max-width: 991px) {
    body.faith-login-page .faith-login-layout {
        direction: rtl;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    body.faith-login-page .faith-login-layout .auth-login-card {
        order: 1;
        margin: 0 auto;
        max-width: 560px;
    }

    body.faith-login-page .faith-side-panel {
        order: 2;
        padding: 24px 20px;
    }
}

@media only screen and (max-width: 767px) {
    .custom-login .auth-login-card .auth-login-card-body {
        padding: 24px 18px;
    }

    .custom-login .faith-connection {
        align-items: flex-start;
    }

    .custom-login .auth-login-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* DMS faith-aligned login redesign (RTL) */
body.dms-faith-login {
    --dms-bg: #ffffff;
    --dms-panel: #ffffff;
    --dms-panel-soft: #ffffff;
    --dms-panel-white: #ffffff;
    --dms-line: #d8e0eb;
    --dms-line-strong: var(--superadmin-primary, var(--bs-primary, #0d6efd));
    --dms-ink: #1f2f45;
    --dms-muted: #637188;
    --dms-accent: var(--superadmin-primary, var(--bs-primary, #0d6efd));
    --dms-accent-hover: var(--superadmin-primary, var(--bs-primary, #0d6efd));
    --dms-gold: var(--superadmin-primary, var(--bs-primary, #0d6efd));
}

body.dms-faith-login .custom-login {
    background: var(--dms-bg);
    color: var(--dms-ink);
}

body.dms-faith-login .custom-login .login-bg-img,
body.dms-faith-login .custom-login .bg-login {
    display: none;
}

body.dms-faith-login .custom-login .custom-login-inner {
    max-width: 1280px;
    padding: 16px;
}

body.dms-faith-login .custom-login .dash-header {
    z-index: 15;
}

body.dms-faith-login .custom-login .navbar {
    position: relative;
    background: var(--dms-panel-white);
    border: 2px solid var(--dms-line);
    border-radius: 16px;
    box-shadow: none;
    padding: 10px 14px;
}

body.dms-faith-login .custom-login .navbar::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    border-bottom: 1px solid #e5eaf2;
}

body.dms-faith-login .custom-login .dash-header .navbar-brand a {
    padding: 3px 0 3px 10px;
}

body.dms-faith-login .custom-login .dash-header .navbar-brand a .logo,
body.dms-faith-login .custom-login .auth-navbar-brand {
    max-height: 42px;
    width: auto;
}

body.dms-faith-login .custom-login .navbar .navbar-collapse {
    justify-content: flex-end;
}

body.dms-faith-login .custom-login .navbar .nav-item .nav-link::after {
    display: none;
}

body.dms-faith-login .custom-login .navbar .nav-link {
    color: var(--dms-ink);
    font-weight: 700;
    padding: 6px 14px;
}

body.dms-faith-login .custom-login .drp-language .btn {
    background: var(--dms-panel-soft);
    border: 1px solid var(--dms-line);
    color: var(--dms-ink);
    border-radius: 10px;
    padding: 9px 12px 9px 28px;
}

body.dms-faith-login .custom-login .drp-language .btn:focus,
body.dms-faith-login .custom-login .drp-language .btn.show {
    border-color: var(--dms-line-strong);
    box-shadow: none;
}

body.dms-faith-login .custom-login .drp-language .drp-text {
    color: var(--dms-ink);
    font-weight: 700;
}

body.dms-faith-login .custom-login .dropdown-menu {
    border-radius: 10px;
    border: 1px solid var(--dms-line);
    box-shadow: none;
    background: var(--dms-panel-white);
}

body.dms-faith-login .custom-login .custom-wrapper {
    max-width: 1280px;
    padding: 18px 0 28px;
}

body.dms-faith-login .dms-content-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0 0 8px;
    padding: 4px 8px;
    background: transparent;
}

body.dms-faith-login .dms-content-logo img {
    display: block;
    max-height: 36px;
    width: auto;
    padding: 4px 8px;
    background: transparent;
}

body.dms-faith-login .custom-login .custom-wrapper .custom-row {
    justify-content: flex-start;
}

body.dms-faith-login .custom-login .custom-wrapper .custom-row > .card,
body.dms-faith-login .custom-login .card {
    width: 100%;
    max-width: 100%;
    background: transparent;
}

body.dms-faith-login .dms-faith-layout {
    direction: ltr;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(430px, 500px);
    gap: 24px;
    align-items: stretch;
    width: 100%;
    min-height: 640px;
}

body.dms-faith-login .dms-faith-hero {
    position: relative;
    overflow: hidden;
    border: 2px solid var(--dms-line);
    border-radius: 20px;
    background: var(--dms-panel);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 640px;
}

body.dms-faith-login .dms-hero-gradient {
    position: absolute;
    inset: 0;
    background: #ffffff;
}

body.dms-faith-login .dms-scene-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(31, 47, 69, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(31, 47, 69, 0.06) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: 0.7;
}

body.dms-faith-login .dms-hero-map {
    position: relative;
    flex: 1;
    min-height: 420px;
    border-radius: 16px;
    border: 1px solid #e1e7f0;
    background: #ffffff;
}

body.dms-faith-login .dms-radar-ring {
    position: absolute;
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(73, 94, 124, 0.25);
    border-radius: 999px;
    animation: dms-ring-pulse 5.1s ease-in-out infinite;
}

body.dms-faith-login .dms-radar-ring.ring-a {
    width: 250px;
    height: 250px;
}

body.dms-faith-login .dms-radar-ring.ring-b {
    width: 330px;
    height: 330px;
    animation-delay: 1.3s;
}

body.dms-faith-login .dms-radar-ring.ring-c {
    width: 418px;
    height: 418px;
    animation-delay: 2.6s;
}

body.dms-faith-login .dms-flow-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

body.dms-faith-login .dms-flow-line {
    stroke: var(--dms-accent);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-dasharray: 8 10;
    opacity: 0.74;
    animation: dms-dash-flow 2.3s linear infinite;
}

body.dms-faith-login .dms-node {
    position: absolute;
    border: 1px solid #d8e0eb;
    border-radius: 12px;
    background: #ffffff;
    color: #2f3f58;
    padding: 7px 10px;
    min-width: 124px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    animation: dms-node-float 4.8s ease-in-out infinite;
}

body.dms-faith-login .dms-node.node-a {
    right: 8%;
    top: 13%;
    animation-delay: 0.5s;
}

body.dms-faith-login .dms-node.node-b {
    right: 5%;
    top: 52%;
    animation-delay: 1.6s;
}

body.dms-faith-login .dms-node.node-c {
    right: 18%;
    top: 77%;
    animation-delay: 2.3s;
}

body.dms-faith-login .dms-node.node-d {
    right: 66%;
    top: 14%;
    animation-delay: 1.1s;
}

body.dms-faith-login .dms-node.node-e {
    right: 76%;
    top: 37%;
    animation-delay: 2.8s;
}

body.dms-faith-login .dms-node.node-f {
    right: 73%;
    top: 72%;
    animation-delay: 3.4s;
}

body.dms-faith-login .dms-core {
    position: absolute;
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%);
    width: 206px;
    height: 206px;
    border-radius: 50%;
    border: 2px solid #d8e0eb;
    background: var(--dms-panel-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 22px 18px;
    animation: dms-core-breathe 5.2s ease-in-out infinite;
}

body.dms-faith-login .dms-core p {
    margin: 0;
    color: var(--dms-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 700;
}

body.dms-faith-login .dms-core h3 {
    margin: 10px 0 4px;
    color: var(--dms-ink);
    font-size: 22px;
    line-height: 1.05;
    font-weight: 800;
}

body.dms-faith-login .dms-core small {
    color: var(--dms-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.dms-faith-login .dms-hero-copy {
    position: relative;
    z-index: 2;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e5eaf2;
    text-align: right;
}

body.dms-faith-login .dms-hero-label {
    margin: 0;
    color: var(--dms-accent);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

body.dms-faith-login .dms-hero-copy h2 {
    margin: 12px 0 8px;
    color: var(--dms-ink);
    font-size: 33px;
    line-height: 1.14;
    font-weight: 800;
    max-width: 560px;
}

body.dms-faith-login .dms-hero-copy p {
    margin: 0 0 0 auto;
    color: var(--dms-muted);
    font-size: 15px;
    line-height: 1.55;
    max-width: 600px;
}

body.dms-faith-login .dms-faith-form-zone {
    display: flex;
    align-items: stretch;
    direction: rtl;
}

body.dms-faith-login .dms-faith-card {
    width: 100%;
    border: 2px solid var(--dms-line);
    border-radius: 20px;
    background: var(--dms-panel-white);
    padding: 26px 24px;
    text-align: right;
}

body.dms-faith-login .dms-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5eaf2;
}

body.dms-faith-login .dms-card-label {
    margin: 0;
    color: var(--dms-accent);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

body.dms-faith-login .dms-card-head h2 {
    margin: 10px 0 4px;
    color: var(--dms-ink);
    font-size: 30px;
    line-height: 1;
    font-weight: 800;
}

body.dms-faith-login .dms-card-copy {
    margin: 0;
    color: var(--dms-muted);
    font-size: 14px;
    line-height: 1.45;
}

body.dms-faith-login .dms-card-icon {
    width: 42px;
    min-width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--dms-line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--dms-panel-soft);
    color: var(--dms-accent);
    font-size: 20px;
    font-weight: 700;
}

body.dms-faith-login .dms-error {
    margin-top: 16px;
    border: 1px solid #cf7676;
    border-radius: 10px;
    background: #fff1f1;
    color: #8a2020;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
}

body.dms-faith-login .dms-login-form {
    margin-top: 18px;
}

body.dms-faith-login .dms-form-group + .dms-form-group {
    margin-top: 14px;
}

body.dms-faith-login .dms-label {
    font-size: 12px;
    color: var(--dms-muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

body.dms-faith-login .dms-field-wrap {
    position: relative;
    margin-top: 6px;
}

body.dms-faith-login .dms-field-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #63728c;
    width: 18px;
    height: 18px;
    pointer-events: none;
}

body.dms-faith-login .dms-field-icon svg {
    width: 18px;
    height: 18px;
}

body.dms-faith-login .dms-login-input {
    min-height: 48px;
    border-radius: 10px;
    border: 1px solid #c9d5e6;
    background: #ffffff;
    color: #1f2f45;
    padding-right: 40px;
    padding-left: 44px;
    text-align: right;
}

body.dms-faith-login .dms-login-input::placeholder {
    color: #8a98ae;
}

body.dms-faith-login .dms-login-input:focus {
    border-color: var(--dms-accent);
    box-shadow: 0 0 0 0.14rem color-mix(in srgb, var(--dms-accent) 22%, transparent);
}

body.dms-faith-login .dms-toggle-pass {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #4b5f7f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.dms-faith-login .dms-toggle-pass:hover,
body.dms-faith-login .dms-toggle-pass:focus {
    background: #eef3fa;
    color: #284a74;
}

body.dms-faith-login .dms-toggle-pass svg {
    width: 16px;
    height: 16px;
}

body.dms-faith-login .dms-login-actions {
    margin: 16px 0 14px;
    padding: 12px 0;
    border-top: 1px solid #e5eaf2;
    border-bottom: 1px solid #e5eaf2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

body.dms-faith-login .dms-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dms-muted);
    font-size: 13px;
}

body.dms-faith-login .dms-remember .form-check-input {
    border-color: #9eaec4;
}

body.dms-faith-login .dms-forgot {
    font-size: 13px;
    font-weight: 700;
    color: var(--dms-accent);
    text-decoration: underline;
}

body.dms-faith-login .dms-submit-btn {
    min-height: 48px;
    border-radius: 10px;
    border: 1px solid var(--dms-accent);
    background: var(--dms-accent);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.01em;
}

body.dms-faith-login .dms-submit-btn:hover,
body.dms-faith-login .dms-submit-btn:focus {
    border-color: var(--dms-accent-hover);
    background: var(--dms-accent-hover);
    filter: brightness(0.95);
}

body.dms-faith-login .dms-register {
    margin: 15px 0 0;
    padding-top: 14px;
    border-top: 1px solid #e5eaf2;
    color: var(--dms-muted);
    font-size: 13px;
}

body.dms-faith-login .dms-register a {
    color: var(--dms-accent) !important;
    font-weight: 700;
}

body.dms-faith-login .dms-note {
    margin: 12px 0 0;
    color: #6d7890;
    font-size: 12px;
}

body.dms-faith-login .auth-footer {
    color: #6d7890;
}

@keyframes dms-ring-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.78);
        opacity: 0.2;
    }
    55% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.36;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.17);
        opacity: 0;
    }
}

@keyframes dms-node-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

@keyframes dms-dash-flow {
    to {
        stroke-dashoffset: -70;
    }
}

@keyframes dms-core-breathe {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(31, 53, 86, 0.12);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(31, 53, 86, 0.02);
    }
}

@media only screen and (max-width: 1199px) {
    body.dms-faith-login .dms-faith-layout {
        grid-template-columns: minmax(0, 1fr) minmax(380px, 470px);
    }

    body.dms-faith-login .dms-card-head h2,
    body.dms-faith-login .dms-hero-copy h2 {
        font-size: 27px;
    }
}

@media only screen and (max-width: 991px) {
    body.dms-faith-login .custom-login .navbar .navbar-collapse {
        margin-top: 12px;
        padding-top: 10px;
        border-top: 1px solid #e5eaf2;
        text-align: right;
    }

    body.dms-faith-login .dms-faith-layout {
        direction: rtl;
        grid-template-columns: 1fr;
        min-height: auto;
    }

    body.dms-faith-login .dms-faith-form-zone {
        order: 1;
    }

    body.dms-faith-login .dms-faith-hero {
        order: 2;
        min-height: 540px;
    }
}

@media only screen and (max-width: 767px) {
    body.dms-faith-login .custom-login .custom-login-inner {
        padding: 12px;
    }

    body.dms-faith-login .dms-faith-hero {
        padding: 20px;
        min-height: 460px;
    }

    body.dms-faith-login .dms-hero-map {
        min-height: 330px;
    }

    body.dms-faith-login .dms-node {
        min-width: 98px;
        font-size: 10px;
        padding: 6px 8px;
    }

    body.dms-faith-login .dms-core {
        width: 164px;
        height: 164px;
        padding: 18px 14px;
    }

    body.dms-faith-login .dms-core h3 {
        font-size: 18px;
    }

    body.dms-faith-login .dms-hero-copy h2,
    body.dms-faith-login .dms-card-head h2 {
        font-size: 24px;
    }

    body.dms-faith-login .dms-faith-card {
        padding: 20px 16px;
    }
}

@media only screen and (max-width: 575px) {
    body.dms-faith-login .dms-login-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Final layout corrections (RTL): no top gap, 50/50 split, cleaner form spacing */
body.dms-faith-login .custom-login .custom-login-inner {
    min-height: 100vh;
    padding-top: 0;
}

body.dms-faith-login .custom-login .custom-wrapper {
    align-items: stretch;
    margin: 0;
    padding-top: 0;
}

body.dms-faith-login .custom-login .custom-wrapper .custom-row {
    align-items: stretch;
}

body.dms-faith-login .dms-faith-layout {
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 72px);
}

body.dms-faith-login .dms-faith-hero,
body.dms-faith-login .dms-faith-form-zone {
    min-height: 100%;
}

body.dms-faith-login .dms-faith-form-zone {
    padding: 22px;
}

body.dms-faith-login .dms-faith-card {
    width: min(100%, 520px);
    margin: auto;
    padding: 32px 30px;
}

body.dms-faith-login .dms-login-form {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

body.dms-faith-login .dms-form-group + .dms-form-group {
    margin-top: 0;
}

body.dms-faith-login .dms-login-actions {
    margin: 2px 0;
    padding: 4px 0;
}

@media only screen and (max-width: 991px) {
    body.dms-faith-login .dms-faith-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }
}

/* Extra line spacing tune */
body.dms-faith-login .dms-login-form {
    gap: 16px;
}

body.dms-faith-login .dms-card-copy,
body.dms-faith-login .dms-hero-copy p,
body.dms-faith-login .dms-register,
body.dms-faith-login .dms-note {
    line-height: 1.7;
}

body.dms-faith-login .dms-register {
    margin-top: 14px;
}

body.dms-faith-login .dms-note {
    margin-top: 14px;
}

/* Show language selector in compact top bar (RTL) */
body.dms-faith-login .custom-login .dash-header {
    display: block;
    margin: 0 0 8px;
}

body.dms-faith-login .custom-login .dash-header .navbar {
    border: 0;
    box-shadow: none !important;
    background: transparent;
    padding: 0;
}

body.dms-faith-login .custom-login .navbar {
    box-shadow: none !important;
}

body.dms-faith-login .custom-login .dash-header .navbar::after {
    display: none;
}

body.dms-faith-login .custom-login .dash-header .navbar-brand,
body.dms-faith-login .custom-login .dash-header .navbar-toggler {
    display: none;
}

body.dms-faith-login .custom-login .dash-header #navbarlogin {
    display: block !important;
}

body.dms-faith-login .custom-login .dash-header .navbar-nav {
    width: 100%;
    justify-content: flex-end;
}

body.dms-faith-login .custom-login .dash-header .lang-dropdown-only-desk {
    display: flex;
}

body.dms-faith-login .dms-captcha-group {
    margin-top: 2px;
}

body.dms-faith-login .dms-captcha-shell {
    margin-top: 6px;
    border: 1px solid #b9c8dd;
    border-radius: 10px;
    background: #f8fbff;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

body.dms-faith-login .dms-captcha-image {
    width: 100%;
    max-width: 260px;
    height: 74px;
    border: 1px solid #cfdae9;
    border-radius: 8px;
    background: #ffffff;
    object-fit: cover;
}

body.dms-faith-login .dms-captcha-refresh {
    border: 1px solid #b9c8dd;
    border-radius: 8px;
    background: #ffffff;
    color: #4f6483;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 12px;
    white-space: nowrap;
}

body.dms-faith-login .dms-captcha-refresh:hover,
body.dms-faith-login .dms-captcha-refresh:focus {
    border-color: var(--dms-accent);
    color: var(--dms-accent);
}

body.dms-faith-login .dms-captcha-refresh:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

body.dms-faith-login .dms-captcha-input-wrap {
    margin-top: 10px;
}

@media only screen and (max-width: 575px) {
    body.dms-faith-login .dms-captcha-shell {
        flex-direction: column;
        align-items: stretch;
    }

    body.dms-faith-login .dms-captcha-image {
        max-width: 100%;
    }
}

/* Slight zoom-out for desktop login layout */
body.dms-faith-login .dms-faith-layout {
    transform: scale(0.96);
    transform-origin: top center;
    width: calc(100% / 0.96);
    margin: 0 auto;
}

@media only screen and (max-width: 991px) {
    body.dms-faith-login .dms-faith-layout {
        transform: none;
        width: 100%;
    }
}

/* Final top spacing: hide header, keep small top gap */
body.dms-faith-login .custom-login .dash-header {
    display: none !important;
}

body.dms-faith-login .custom-login .custom-login-inner {
    padding-top: 8px;
}
