.login-img,
.page,
.page-main,
.page-content {
    background: transparent !important;
    background-color: var(--eca-login-background) !important;
}

.col-login,
.login-bg1 .row > [class*="col-"] {
    width: 100%;
    max-width: 760px !important;
}

.col-login > .card,
.login-bg1 .card {
    overflow: hidden;
    border: 1px solid rgba(222, 226, 234, 0.9) !important;
    border-radius: 26px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow:
        0 24px 70px rgba(30, 41, 59, 0.09),
        0 5px 18px rgba(30, 41, 59, 0.04) !important;
    backdrop-filter: blur(15px);
}

.eca-auth {
    width: 100%;
    direction: rtl;
    color: var(--eca-text);
}

.eca-auth--login {
    max-width: 560px;
    margin: 0 auto;
}

.eca-auth__header {
    position: relative;
    padding: 16px;
    text-align: center;
}

.eca-auth__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    border: 1px solid rgba(239, 35, 60, 0.14);
    border-radius: 19px;
    background: rgba(239, 35, 60, 0.07);
    color: var(--eca-primary);
    font-size: 25px;
    box-shadow: 0 10px 25px rgba(239, 35, 60, 0.08);
}

.eca-auth__title {
    margin: 0 0 9px;
    color: var(--eca-text);
    font-size: 24px !important;
    font-weight: 800;
    line-height: 1.6;
}

.eca-auth__description {
    margin: 0;
    color: var(--eca-muted);
    font-size: 13px;
    line-height: 1.9;
}

.eca-auth__body {
    padding: 28px 40px;
}
.eca-auth--register  .eca-auth__body{
    padding: 28px 18px;
}

.eca-auth .form-group {
    margin-bottom: 20px;
}

.eca-auth .form-label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 9px;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

.eca-auth .text-red {
    color: var(--eca-primary) !important;
}

.eca-field {
    position: relative;
}

.eca-field__icon {
    position: absolute;
    top: 50%;
    right: 15px;
    z-index: 3;
    color: #9aa3b5;
    font-size: 18px;
    pointer-events: none;
    transform: translateY(-50%);
}

.eca-control {
    width: 100%;
    height: 49px;
    padding-right: 40px;
    padding-left: 16px;
    border: 1px solid var(--eca-border) !important;
    border-radius: 13px !important;
    background: #fff !important;
    color: var(--eca-text);
    font-size: 13px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.eca-control:hover {
    border-color: #d4d9e2 !important;
}

.eca-control:focus {
    border-color: rgba(239, 35, 60, 0.58) !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 4px rgba(239, 35, 60, 0.075) !important;
}

.eca-control::placeholder {
    color: #b0b7c6;
}

.eca-control--ltr {
    direction: ltr;
    text-align: left;
}

.eca-password-toggle {
    position: absolute;
    top: 50%;
    left: 8px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #98a1b2;
    cursor: pointer;
    transform: translateY(-50%);
    transition: 0.2s ease;
}

.eca-password-toggle:hover {
    background: #f3f5f8;
    color: var(--eca-primary);
}

.eca-auth .is-invalid {
    border-color: #dc3545 !important;
    background-image: none !important;
}

.eca-auth .invalid-feedback {
    margin-top: 7px;
    color: #dc3545;
    font-size: 11px;
    line-height: 1.8;
}

.eca-auth__options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 2px 0 22px;
}

.eca-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: #4b5563;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
}

.eca-check input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.eca-check__box {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 1px solid #cfd5df;
    border-radius: 6px;
    background: #fff;
    transition: 0.2s ease;
}

.eca-check input:checked + .eca-check__box {
    border-color: var(--eca-primary);
    background: var(--eca-primary);
}

.eca-check input:checked + .eca-check__box::after {
    content: "✓";
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.eca-auth__link {
    color: var(--eca-primary);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}

.eca-auth__link:hover {
    color: var(--eca-primary-dark);
    text-decoration: none;
}

.eca-submit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 50px;
    padding: 11px 20px;
    border: 0;
    border-radius: 13px;
    background: var(--eca-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 13px 26px rgba(239, 35, 60, 0.19);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.eca-submit:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(239, 35, 60, 0.25);
}

.eca-submit:active {
    transform: translateY(0);
}

.eca-submit:disabled {
    cursor: wait;
    opacity: 0.7;
}

.eca-auth__divider {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 27px 0 20px;
    color: #b1b7c3;
    font-size: 11px;
}

.eca-auth__divider::before,
.eca-auth__divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #eceff3;
}

.eca-auth__footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.eca-auth__footer-text {
    margin: 0;
    color: #667085;
    font-size: 12px;
    line-height: 1.8;
}

.eca-auth__home {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #667085;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.eca-auth__home:hover {
    color: var(--eca-primary);
    text-decoration: none;
}

.eca-auth__notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
    padding: 12px 14px;
    border: 1px solid #e7ebf0;
    border-radius: 12px;
    background: #fafbfc;
    color: #667085;
    font-size: 11px;
    line-height: 1.8;
}

.eca-auth__notice i {
    margin-top: 3px;
    color: var(--eca-success);
    font-size: 16px;
}

.eca-auth__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}

@media (max-width: 767px) {
        .page.login-bg1 {
            min-height: 100dvh;
            height: auto;
        }
    
        .page.login-bg1 .page-single,
        .page.login-bg1 .container,
        .page.login-bg1 .row,
        .page-content {
            background: #fff !important;
        }
    
        .page-content {
            padding: 0;
        }
    
        .page.login-bg1 .container {
            max-width: 100%;
            padding-inline: 12px;
        }
    
        .col-login,
        .login-bg1 .row > [class*="col-"] {
            flex: 0 0 100%;
            max-width: 100% !important;
            padding-inline: 0;
        }
    
        .col-login > .card,
        .login-bg1 .card {
            border: none !important;
            border-radius: 0 !important;
            background: transparent !important;
            box-shadow: none !important;
            backdrop-filter: none;
            padding: 16px 10px 24px !important;
        }
    
        .login-bg1 .logo-login {
            padding-top: 12px !important;
            padding-bottom: 8px !important;
        }
    
        .eca-auth--login,
        .eca-auth--register {
            max-width: 100%;
        }
    
        .eca-auth__header {
            padding: 8px 4px 12px;
        }
    
        .eca-auth__body {
            padding: 16px 6px 20px;
        }
    
        .eca-auth--register .eca-auth__body {
            padding: 16px 6px 20px;
        }
    
        .eca-auth__title {
            font-size: 20px !important;
        }
    
        .eca-auth .form-group {
            margin-bottom: 16px;
        }
    
        .eca-control {
            height: 55px;
            font-size: 14px;
        }
    
        .eca-submit {
            min-height: 56px;
            font-size: 14px;
        }
    
        .eca-auth__options {
            align-items: flex-start;
            margin-bottom: 18px;
        }
    
        .eca-auth__divider {
            margin: 20px 0 16px;
        }
    
        .eca-auth__grid {
            grid-template-columns: 1fr;
            gap: 0;
        }
    
    
        .page.login-bg1:has(.eca-auth--login),
        .page.login-bg1:has(.eca-auth--register) {
            height: 100dvh;
            min-height: 100dvh;
        }
    
        .page.login-bg1:has(.eca-auth--login) .page-single,
        .page.login-bg1:has(.eca-auth--register) .page-single {
            height: 100dvh;
            min-height: 100dvh;
        }
    
        .page.login-bg1:has(.eca-auth--login) .page-single {
            align-items: center;
            justify-content: center;
        }
    
        .page.login-bg1:has(.eca-auth--login) .container,
        .page.login-bg1:has(.eca-auth--login) .row {
            width: 100%;
        }
    
        .page.login-bg1:has(.eca-auth--login) .container {
            padding-left: 16px;
            padding-right: 16px;
        }
    
        .page.login-bg1:has(.eca-auth--login) .row {
            margin-left: 0;
            margin-right: 0;
        }
    
        .page.login-bg1:has(.eca-auth--login) [class*="col-"] {
            flex: 0 0 100% !important;
            max-width: 100% !important;
            padding-left: 0 !important;
            padding-right: 0 !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
        }
    
        .page.login-bg1:has(.eca-auth--login) .card {
            padding: 16px 16px 24px !important;
            width: 100%;
        }
    
        .page.login-bg1:has(.eca-auth--login) .logo-login {
            padding: 12px 0 8px !important;
        }
    
        .page.login-bg1:has(.eca-auth--login) .eca-auth__header {
            padding: 8px 0 12px;
        }
    
        .page.login-bg1:has(.eca-auth--login) .eca-auth__body {
            padding: 16px 0 20px;
        }
    
    
        .page.login-bg1:has(.eca-auth--register),
        body:has(.eca-auth--register) {
            overflow: hidden;
        }
    
        .page.login-bg1:has(.eca-auth--register) .page-single {
            align-items: stretch;
            justify-content: flex-start;
        }
    
        .page.login-bg1:has(.eca-auth--register) .card {
            flex: 1;
            display: flex;
            flex-direction: column;
            min-height: 100dvh;
            padding: 10px 14px 14px !important;
        }
    
        .page.login-bg1:has(.eca-auth--register) .logo-login {
            padding-top: 10px !important;
            padding-bottom: 4px !important;
        }
    
        .eca-auth--register {
            flex: 1;
            display: flex;
            flex-direction: column;
            width: 100%;
        }
    
        .eca-auth--register .eca-auth__header {
            padding: 4px 0 6px;
            flex-shrink: 0;
        }
    
        .eca-auth--register .eca-auth__description {
            line-height: 1.5;
        }
    
        .eca-auth--register .eca-auth__body {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-evenly;
            padding: 0;
            min-height: 0;
        }
    
        .eca-auth--register .eca-auth__grid {
            grid-template-columns: 1fr;
            gap: 0;
        }
    
        .eca-auth--register .eca-auth__grid:first-of-type {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0 10px;
        }
    
        .eca-auth--register .form-group {
            margin-bottom: clamp(8px, 1.2dvh, 13px);
        }
    
        .eca-auth--register .form-label {
            margin-bottom: clamp(4px, 0.7dvh, 7px);
        }
    
        .eca-auth--register .eca-auth__divider {
            margin: clamp(8px, 1.5dvh, 14px) 0 clamp(6px, 1.2dvh, 12px);
        }
    
        .eca-auth--register .eca-auth__footer-links {
            gap: clamp(4px, 1dvh, 8px);
        }
    
        .eca-auth--register .invalid-feedback:not(.d-block) {
            display: none !important;
            margin: 0 !important;
        }
    }