/* =========================================================
   ALJOUF LOGIN 2026
   OpenCart 4.1 + Journal 3.2.8
========================================================= */

#account-login {
    --login-green: #005b2c;
    --login-green-light: #79b94b;
    --login-header: #e9f3df;
    --login-text: #1d252b;
    --login-muted: #727b83;
    --login-border: #d9dde0;
    --login-soft: #fafafa;
    direction: rtl;
}

/* Hide default title / breadcrumbs for this design */
body.route-account-login .breadcrumbs,
body.route-account-login > .page-title,
#account-login > .row > #content > .page-title {
    display: none !important;
}

#account-login {
    max-width: none !important;
    width: 100%;
    padding: 16px 15px 24px;
    /*background: #454545;*/
    min-height: 0;
    box-sizing: border-box;
}

#account-login > .row {
    margin: 0;
    display: block;
}

#account-login #content {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    float: none !important;
}

#account-login .login-box {
    margin: 0 !important;
    display: block !important;
}

#account-login .login-box > div {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    float: none !important;
}

#account-login .well {
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.aj-login-card {
    width: 100%;
    max-width: 435px;
    margin: 0 auto;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0,0,0,.22);
}

.aj-login-header {
    height: 52px;
    padding: 0 18px;
    background: var(--login-header);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.aj-login-header-title {
    margin: 0;
    font-size: 19px;
    line-height: 1;
    font-weight: 800;
    color: #172019;
}

.aj-login-close {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #151b1f;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

.aj-login-body {
    padding: 27px 17px 25px;
}

.aj-login-title {
    margin: 0 0 9px;
    font-size: 20px;
    line-height: 1.4;
    color: var(--login-text);
    font-weight: 800;
}

.aj-register-line {
    margin-bottom: 26px;
    color: #3f484f;
    font-size: 14px;
}

.aj-register-line a {
    color: #27714b !important;
    text-decoration: underline !important;
}

.modal-link b {
    color: #00572d !important;
}

.aj-register-screen {
    display: none;
    min-height: 690px;
}

.aj-login-card.register-mode .aj-main-login,
.aj-login-card.register-mode .aj-otp-screen,
.aj-login-card.register-mode .aj-reset-screen {
    display: none;
}

.aj-login-card.register-mode .aj-register-screen {
    display: block;
}

.aj-register-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.aj-register-screen .form-group {
    margin-bottom: 10px !important;
}

.aj-register-phone-wrap {
    display: flex;
    align-items: center;
    border: 1px solid var(--login-border);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.aj-register-phone-wrap .form-control {
    border: 0 !important;
    border-radius: 0 !important;
    direction: ltr;
    text-align: left;
}

.aj-register-country {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    color: #5f6971;
}

.aj-register-flag {
    width: 29px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: var(--login-green);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
}

.aj-register-option {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: -8px 0 24px;
    color: #77818a;
    font-size: 14px;
}

.aj-register-option input {
    width: 42px;
    height: 22px;
    margin: 0;
}

.aj-register-password-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    margin-top: 14px;
    color: #27714b;
    font-size: 14px;
    font-weight: 700;
}

.aj-register-password-toggle i:first-child {
    color: #27714b;
}

.aj-login-card .form-group {
    margin: 0 0 24px !important;
}

.aj-login-card .aj-register-screen .form-group {
    margin-bottom: 10px !important;
}

.aj-login-card .control-label,
.aj-login-card .aj-field-label {
    display: block;
    width: 100%;
    margin: 0 0 7px;
    color: #3b4349;
    font-size: 14px;
    font-weight: 700;
    text-align: right;
}

.aj-required {
    color: #df332b;
    margin-right: 3px;
}

.aj-login-card .form-control {
    width: 100%;
    height: 46px;
    padding: 8px 14px;
    border: 1px solid var(--login-border) !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #20282d !important;
    font-size: 16px !important;
    box-shadow: none !important;
    outline: 0 !important;
}

.aj-login-card .form-control:focus {
    border-color: #7a9d86 !important;
}

.aj-login-method-label {
    margin-bottom: 9px;
    color: #444c52;
    font-size: 14px;
    font-weight: 700;
}

.aj-login-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 51px;
    padding: 6px;
    margin-bottom: 25px;
    background: var(--login-green-light);
    border-radius: 9px;
    gap: 5px;
}

.aj-login-tab {
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.aj-login-tab.active {
    background: #fff;
    color: #3d454b;
}

.aj-login-tab i {
    margin-left: 6px;
    font-size: 17px;
}

.aj-password-wrap {
    position: relative;
}

.aj-password-toggle {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #a5adb4;
    cursor: pointer;
}

.aj-password-wrap .form-control {
    padding-left: 48px;
}

.aj-forgot {
    display: inline-block;
    margin-top: 10px;
    color: #217149 !important;
    font-size: 14px;
    text-decoration: none !important;
}

.aj-login-submit {
    width: 100%;
    min-height: 47px;
    margin-top: 32px;
    border: 0 !important;
    border-radius: 7px !important;
    background: var(--login-green) !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    box-shadow: none !important;
}

.aj-login-submit.aj-register-submit {
    margin-top: 110px;
}

.aj-divider {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 25px 0 18px;
    color: #858d94;
    font-size: 14px;
}

.aj-divider:before,
.aj-divider:after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e4e7e9;
}

.aj-social-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
}

.aj-social-btn {
    width: 68px;
    height: 47px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8dcdf;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,.08);
    cursor: pointer;
}

.aj-social-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.aj-social-btn .fa-apple {
    font-size: 26px;
    color: #000;
}

/* OTP confirmation */
.aj-otp-confirm {
    display: none;
    margin: -2px 0 20px;
    padding: 18px 15px;
    background: #fafafa;
    border-radius: 13px;
    text-align: center;
}

.aj-otp-confirm.show {
    display: block;
}

.aj-otp-confirm-title {
    color: var(--login-green);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 7px;
}

.aj-otp-confirm-value {
    color: #808890;
    font-size: 14px;
    direction: ltr;
    margin-bottom: 14px;
}

.aj-confirm-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.aj-confirm-btn {
    min-width: 100px;
    height: 39px;
    border: 0;
    border-radius: 7px;
    background: var(--login-green);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.aj-cancel-btn {
    border: 0;
    background: transparent;
    color: #687179;
    font-size: 14px;
}

/* OTP screen */
.aj-otp-screen,
.aj-reset-screen {
    display: none;
}

.aj-login-card.otp-mode .aj-main-login {
    display: none;
}

.aj-login-card.otp-mode .aj-otp-screen {
    display: block;
}

.aj-login-card.reset-mode .aj-main-login,
.aj-login-card.reset-mode .aj-otp-screen {
    display: none;
}

.aj-login-card.reset-mode .aj-reset-screen {
    display: block;
}

.aj-otp-screen {
    min-height: 455px;
}

.aj-otp-box {
    padding: 22px 16px;
    background: #fafafa;
    border-radius: 14px;
    text-align: right;
}

.aj-otp-status {
    text-align: center;
    color: #1d2923;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 4px;
}

.aj-otp-resend {
    text-align: center;
    color: #357754;
    font-size: 13px;
    margin-bottom: 15px;
}

.aj-otp-input-row {
    display: flex;
    direction: ltr;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.aj-otp-digit {
    width: 52px;
    height: 44px;
    border: 1px solid #d9dde0;
    border-radius: 8px;
    text-align: center;
    font-size: 20px;
    outline: 0;
}

.aj-otp-bottom {
    display: grid;
    grid-template-columns: 1fr 2.2fr;
    gap: 16px;
    margin-top: 225px;
}

.aj-otp-next,
.aj-reset-next {
    height: 47px;
    border: 0;
    border-radius: 7px;
    background: var(--login-green);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
}

.aj-otp-cancel {
    height: 47px;
    border: 1px solid #d9dde0;
    border-radius: 7px;
    background: #fff;
    color: #606970;
    font-size: 15px;
    font-weight: 700;
}

/* Alerts */
#account-login .alert {
    max-width: 435px;
    margin: 0 auto 15px;
}

/* Mobile */
@media (max-width: 600px) {
    #account-login {
        padding: 8px 12px 16px;
        min-height: 0;
    }

    .aj-login-card {
        max-width: 100%;
    }

    .aj-login-body {
        padding: 27px 17px 24px;
    }

    .aj-register-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .aj-login-submit.aj-register-submit {
        margin-top: 80px;
    }
}



/* =====================================================
   REGISTER SCREEN
===================================================== */

.aj-register-screen {
    direction: rtl !important;

    position: relative !important;

    width: 100% !important;
    min-height: 0 !important;

    padding: 14px 16px 16px !important;

    background: #ffffff !important;

    box-sizing: border-box !important;

    font-family: inherit !important;

    color: #171c28 !important;
}


/* =====================================================
   TITLE
===================================================== */

.aj-register-screen .aj-login-title {
    margin: 0 0 3px !important;

    padding: 0 !important;

    text-align: right !important;

    font-size: 18px !important;
    line-height: 1.35 !important;

    font-weight: 700 !important;

    color: #171c28 !important;
}


/* =====================================================
   LOGIN LINE
===================================================== */

.aj-register-line {
    display: flex !important;

    align-items: center !important;
    justify-content: flex-start !important;

    gap: 5px !important;

    margin: 0 0 12px !important;

    font-size: 14px !important;
    line-height: 1.4 !important;

    font-weight: 400 !important;

    color: #4f5560 !important;
}

.aj-register-line a {
    color: #31764e !important;

    text-decoration: underline !important;

    font-weight: 400 !important;
}


/* =====================================================
   FORM GROUP
===================================================== */

.aj-register-screen .form-group {
    margin: 0 0 10px !important;
}


/* =====================================================
   FIRST + LAST NAME
===================================================== */

.aj-register-grid {
    display: grid !important;

    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

    gap: 12px !important;

    width: 100% !important;

    margin-bottom: 0 !important;
}


/* =====================================================
   LABEL
===================================================== */

.aj-register-screen .control-label {
    display: block !important;

    width: 100% !important;

    margin: 0 0 4px !important;
    padding: 0 !important;

    text-align: right !important;

    font-size: 15px !important;
    line-height: 1.35 !important;

    font-weight: 600 !important;

    color: #454955 !important;
}

.aj-login-identifier-group,
.aj-phone-group,
.aj-email-group {
    display: block !important;
    width: 100% !important;
}

.aj-login-identifier-group > .control-label,
.aj-phone-group > .control-label,
.aj-email-group > .control-label {
    position: static !important;
    display: block !important;
    float: none !important;
    width: 100% !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    direction: rtl !important;
    text-align: right !important;
    transform: none !important;
}

.aj-login-identifier-group > .form-control,
.aj-phone-group > .aj-register-phone-wrap,
.aj-email-group > .form-control {
    display: block !important;
    width: 100% !important;
}


/* Required Star */

.aj-register-screen .aj-required {
    display: inline-block !important;

    margin-right: 3px !important;

    color: #d92d20 !important;

    font-size: 16px !important;
    font-weight: 700 !important;
}


/* =====================================================
   INPUTS
===================================================== */

.aj-register-screen .form-control {
    width: 100% !important;

    height: 43px !important;

    padding: 0 13px !important;

    border: 1px solid #d4d8dd !important;
    border-radius: 10px !important;

    background: #ffffff !important;

    box-shadow:
        0 1px 2px rgba(16, 24, 40, 0.06) !important;

    outline: none !important;

    box-sizing: border-box !important;

    text-align: right !important;

    font-size: 15px !important;
    font-weight: 400 !important;

    color: #1c212b !important;

    transition:
        border-color .2s ease,
        box-shadow .2s ease !important;
}


.aj-register-screen .form-control::placeholder {
    color: #d1d4d9 !important;

    opacity: 1 !important;

    font-size: 15px !important;
}


.aj-register-screen .form-control:focus {
    border-color: #94ad9e !important;

    box-shadow:
        0 0 0 2px rgba(0, 87, 45, .05) !important;
}


/* =====================================================
   PHONE
===================================================== */

.aj-phone-group {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}


.aj-register-phone-wrap {
    position: relative !important;

    width: 100% !important;
}


.aj-register-phone-wrap .form-control {
    direction: ltr !important;

    text-align: center !important;

    padding-right: 68px !important;
    padding-left: 125px !important;

    font-size: 18px !important;

    color: #000 !important;
}


.aj-register-phone-wrap .form-control::placeholder {
    color: #ccc !important;

    opacity: 0.5 !important;
}


/* Country */

.aj-register-country {
    position: absolute !important;

    top: 50% !important;
    left: 14px !important;
    right: auto !important;

    transform: translateY(-50%) !important;

    display: flex !important;

    align-items: center !important;

    gap: 8px !important;

    direction: ltr !important;

    height: 100% !important;

    pointer-events: none !important;
}


/* Saudi Flag */

.aj-register-flag {
    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    width: 29px !important;
    height: 23px !important;

    overflow: hidden !important;

    border-radius: 4px !important;

    font-size: 22px !important;
    line-height: 1 !important;
}


.aj-register-dial-code {
    color: #ccc !important;

    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}


.aj-country-arrow {
    color: #989da5 !important;

    font-size: 15px !important;
}


/* =====================================================
   OPTION / CONFIRM ROW
===================================================== */

.aj-register-option {
    display: flex !important;

    align-items: center !important;
    justify-content: flex-start !important;

    direction: rtl !important;

    flex-direction: row !important;

    gap: 6px !important;

    width: 100% !important;

    margin: 0 0 12px !important;

    cursor: pointer !important;

    font-size: 14px !important;
    line-height: 1.35 !important;

    font-weight: 400 !important;

    color: #7a808a !important;
}


.aj-option-text {
    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    flex: 0 1 auto !important;

    direction: ltr !important;

    gap: 4px !important;

    order: 2 !important;
}


.aj-option-text .fa-question-circle-o {
    font-size: 18px !important;

    color: #aab0b7 !important;
}

.aj-option-text.is-verified {
    color: #00572D !important;

    font-weight: 700 !important;
}

.aj-option-text .aj-verified-check {
    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    width: 18px !important;

    height: 18px !important;

    margin-inline-start: 6px !important;

    border-radius: 50% !important;

    background: #e8f6ee !important;

    color: #007a3d !important;

    font-size: 12px !important;
}


/* =====================================================
   SWITCH
===================================================== */

.aj-switch {
    position: relative !important;

    display: inline-block !important;

    width: 42px !important;
    min-width: 42px !important;

    height: 22px !important;

    order: 1 !important;
}


.aj-switch input {
    position: absolute !important;

    opacity: 0 !important;

    width: 0 !important;
    height: 0 !important;
}


.aj-switch-slider {
    position: absolute !important;

    inset: 0 !important;

    border-radius: 20px !important;

    background: #e7e9ec !important;

    transition: .2s !important;
}


.aj-switch-slider::before {
    content: "" !important;

    position: absolute !important;

    width: 18px !important;
    height: 18px !important;

    top: 2px !important;
    left: 2px !important;

    background: #ffffff !important;

    border-radius: 50% !important;

    box-shadow:
        0 1px 3px rgba(0,0,0,.12) !important;

    transition: .2s !important;
}


.aj-switch input:checked + .aj-switch-slider {
    background: #00572d !important;
}


.aj-switch input:checked + .aj-switch-slider::before {
    transform: translateX(20px) !important;
}


/* =====================================================
   EMAIL
===================================================== */

.aj-email-group {
    margin-bottom: 11px !important;
}


/* =====================================================
   PASSWORD
===================================================== */

.aj-register-password-toggle {
    display: flex !important;

    align-items: center !important;
    justify-content: flex-start !important;

    width: 100% !important;

    margin-top: 0 !important;

    padding: 0 !important;

    color: #31764e !important;

    font-size: 14px !important;
    font-weight: 400 !important;

    cursor: pointer !important;
}


.aj-password-right {
    display: flex !important;

    align-items: center !important;

    gap: 9px !important;
}


.aj-password-right .fa-lock {
    font-size: 15px !important;

    color: #31764e !important;
}


.aj-password-arrow {
    margin-right: 9px !important;

    color: #111820 !important;

    font-size: 20px !important;
}

.aj-register-password-panel {
    display: none !important;
}

.aj-register-screen.password-mode .aj-register-password-toggle {
    display: none !important;
}

.aj-register-screen.password-mode .aj-register-password-panel {
    display: block !important;
}

.aj-register-password-cancel {
    display: inline-flex !important;

    align-items: center !important;
    gap: 7px !important;

    margin-top: 6px !important;

    padding: 0 !important;

    border: 0 !important;
    background: transparent !important;

    color: #e0322b !important;

    font-size: 14px !important;
    font-weight: 400 !important;

    cursor: pointer !important;
}

.aj-register-password-cancel:hover,
.aj-register-password-cancel:focus,
.aj-register-password-cancel:active {
    color: #e0322b !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}


/* =====================================================
   SUBMIT BUTTON
===================================================== */

.aj-register-submit {
    position: static !important;

    width: 100% !important;

    height: 46px !important;

    margin: 12px 0 0 !important;
    padding: 0 !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    border: 0 !important;
    border-radius: 10px !important;

    background: #00572d !important;

    color: #ffffff !important;

    box-shadow: none !important;

    font-size: 16px !important;

    font-weight: 700 !important;

    line-height: 1 !important;
}


.aj-register-submit:hover,
.aj-register-submit:focus,
.aj-register-submit:active {
    background: #00572d !important;

    color: #ffffff !important;

    border: 0 !important;

    box-shadow: none !important;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {

    .aj-register-screen {
        min-height: 0 !important;

        padding: 12px 14px 14px !important;
    }

    .aj-register-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 12px !important;
    }

    .aj-register-screen .control-label {
        font-size: 14px !important;
    }

    .aj-register-screen .form-control {
        font-size: 15px !important;
    }

    .aj-register-line {
        font-size: 14px !important;
    }

}


/* =====================================================
   CONFIRM BLOCK
===================================================== */

.aj-confirm-block {
    width: 100% !important;
}


/* actions hidden by default */

.aj-confirm-actions {
    display: none !important;

    align-items: center !important;
    justify-content: flex-start !important;

    gap: 22px !important;

    width: 100% !important;

    margin-top: -15px !important;
    margin-bottom: 24px !important;

    padding: 8px 0 0 !important;

    direction: rtl !important;
}


/* active */

.aj-confirm-actions.is-active {
    display: flex !important;
    flex-wrap: wrap !important;
}

.aj-register-otp-panel {
    display: none;
    width: 100%;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.aj-register-otp-panel.is-active {
    display: flex;
}

.aj-register-otp-inputs {
    display: flex;
    gap: 8px;
}

.aj-register-otp-digit {
    width: 42px !important;
    height: 38px !important;
    text-align: center !important;
    direction: ltr !important;
}

.aj-register-otp-status {
    width: 100%;
    color: #00572D;
    font-size: 13px;
    font-weight: 600;
}

.aj-register-otp-status.is-error {
    color: #b00020;
}

.aj-register-otp-resend {
    border: 0;
    background: transparent;
    color: #00572D;
    font-size: 13px;
    font-weight: 600;
    padding: 0;
}

.aj-register-otp-resend:disabled {
    color: #777;
}


/* Send OTP */

.aj-confirm-send {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    min-width: 121px !important;
    height: 35px !important;

    padding: 0 15px !important;

    border: 0 !important;
    border-radius: 7px !important;

    background: #00572D !important;

    color: #ffffff !important;

    font-size: 14px !important;
    font-weight: 600 !important;

    line-height: 1 !important;

    box-shadow: none !important;

    cursor: pointer !important;
}


.aj-confirm-send:hover,
.aj-confirm-send:focus,
.aj-confirm-send:active {
    background: #00572D !important;

    color: #ffffff !important;

    border: 0 !important;

    box-shadow: none !important;
}


/* Cancel */

.aj-confirm-cancel {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    height: 35px !important;

    padding: 0 8px !important;

    border: 0 !important;

    background: transparent !important;

    color: #555b65 !important;

    font-size: 14px !important;
    font-weight: 400 !important;

    box-shadow: none !important;

    cursor: pointer !important;
}


.aj-confirm-cancel:hover,
.aj-confirm-cancel:focus,
.aj-confirm-cancel:active {
    background: transparent !important;

    color: #555b65 !important;

    border: 0 !important;

    box-shadow: none !important;
}
