:root {
    --daneh-primary: #12b8bf;
    --daneh-primary-dark: #0a9299;
    --daneh-blue: #3167ff;
    --daneh-text: #172033;
    --daneh-muted: #667085;
    --daneh-border: #dbe5f0;
    --daneh-bg: #f6f9fd;
    --daneh-card: rgba(255, 255, 255, 0.92);
    --daneh-danger: #ef4056;
}

/* ================================
   Page Shell
================================ */

body {
    background:
        radial-gradient(circle at 14% 18%, rgba(18, 184, 191, 0.10), transparent 28%),
        radial-gradient(circle at 86% 12%, rgba(49, 103, 255, 0.08), transparent 30%),
        linear-gradient(180deg, #fbfdff 0%, #f3f7fb 100%);
}

.daneh-recover-page {
    direction: rtl;
    max-width: 720px;
    margin: 20px auto 50px;
    padding: 0 16px;
    font-family: inherit;
}

.daneh-recover-card {
    position: relative;
    overflow: hidden;
    padding: 38px;
    border: 1px solid rgba(219, 229, 240, 0.9);
    border-radius: 30px;
    background: var(--daneh-card);
    box-shadow:
        0 28px 70px rgba(26, 46, 82, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(18px);
}

/* ================================
   Header
================================ */

.daneh-recover-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.daneh-recover-icon {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: linear-gradient(145deg, #ffffff, #eef8fb);
    box-shadow:
        0 16px 34px rgba(18, 184, 191, 0.16),
        inset 0 -8px 18px rgba(18, 184, 191, 0.10);
}

.daneh-recover-icon svg {
    width: 34px;
    height: 34px;
    fill: var(--daneh-primary);
}

.daneh-recover-title {
    margin: 0 0 7px;
    color: var(--daneh-text);
    font-size: 30px;
    font-weight: 900;
    line-height: 1.4;
}

.daneh-recover-desc {
    margin: 0;
    color: var(--daneh-muted);
    font-size: 13px;
    line-height: 2;
}

/* ================================
   Notice
================================ */

.daneh-recover-notice {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid rgb(191 155 18 / 18%);
    border-radius: 16px;
    background: linear-gradient(135deg, rgb(191 160 18 / 6%), rgb(255 191 49 / 3%));
    color: #73694b;
    font-size: 13px;
    line-height: 2;
}

.notice-footer {
    margin-bottom: 0;
    margin-top: 20px;
}

.daneh-recover-notice strong {
    color: var(--daneh-primary-dark);
    font-weight: 900;
}

/* ================================
   Flow / Steps
================================ */

.daneh-recover-steps {
    display: none;
}

.daneh-recover-flow {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 44px 1fr;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 28px;
}

.daneh-recover-flow-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 74px;
    padding: 14px;
    border: 1px solid rgba(219, 229, 240, 0.95);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
}

.daneh-recover-flow-item span {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eef3f8;
    color: #667085;
    font-size: 14px;
    font-weight: 900;
}

.daneh-recover-flow-item strong {
    display: block;
    margin-bottom: 4px;
    color: #25324b;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.7;
}

.daneh-recover-flow-item small {
    display: block;
    color: #667085;
    font-size: 12px;
    line-height: 1.8;
}

.daneh-recover-flow-item.is-active {
    border-color: rgba(18, 184, 191, 0.25);
    background: linear-gradient(135deg, rgba(18, 184, 191, 0.08), rgba(49, 103, 255, 0.035));
}

.daneh-recover-flow-item.is-active span {
    color: #fff;
    background: linear-gradient(135deg, var(--daneh-primary), var(--daneh-blue));
    box-shadow: 0 12px 24px rgba(18, 184, 191, 0.22);
}

.daneh-recover-flow-arrow {
    display: grid;
    place-items: center;
    color: #98a2b3;
}

.daneh-recover-flow-arrow svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.daneh-recover-page.is-sms-sent .daneh-recover-flow-item:first-child span {
    background: #e7f8f6;
    color: var(--daneh-primary-dark);
}

.daneh-recover-page.is-sms-sent .daneh-recover-flow-item:last-child {
    border-color: rgba(18, 184, 191, 0.28);
}

.daneh-recover-page.is-sms-sent .daneh-recover-flow-item:last-child span {
    color: #fff;
    background: linear-gradient(135deg, var(--daneh-primary), var(--daneh-blue));
    box-shadow: 0 12px 24px rgba(18, 184, 191, 0.22);
}

/* ================================
   Fabrik Form Reset
================================ */

.daneh-recover-formarea {
    position: relative;
    width: 60%;
    max-width: 100%;
    margin: 0 auto;
}

.daneh-recover-formarea .fabrikForm,
.daneh-recover-formarea .fabrikGroup,
.daneh-recover-formarea .fabrikSubGroup,
.daneh-recover-formarea .fabrikElementContainer {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.daneh-recover-formarea .fabrikGroup {
    margin: 0;
    padding: 0;
}

.daneh-recover-formarea .fabrikGroup .legend,
.daneh-recover-formarea legend {
    display: none;
}

.daneh-recover-formarea .fabrikElementContainer {
    margin-bottom: 0;
    padding: 0;
    margin: 0;
}

.daneh-recover-formarea .fabrikLabel,
.daneh-recover-formarea label {
    display: block;
    margin-bottom: 9px;
    color: #25324b;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.8;
}

/* ================================
   Base Fields
================================ */

.daneh-recover-formarea input[type="text"],
.daneh-recover-formarea input[type="tel"],
.daneh-recover-formarea input[type="email"],
.daneh-recover-formarea input[type="password"],
.daneh-recover-formarea select,
.daneh-recover-formarea textarea {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    margin: 5px 0;
    border: 1px solid var(--daneh-border);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.96);
    color: #101828;
    font-size: 15px;
    outline: none;
    box-shadow: 0 5px 7px rgba(0, 0, 0, 0.11);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.daneh-recover-formarea textarea {
    min-height: 110px;
    padding-top: 14px;
    line-height: 2;
}

.daneh-recover-formarea input:focus,
.daneh-recover-formarea select:focus,
.daneh-recover-formarea textarea:focus {
    border-color: rgba(18, 184, 191, 0.75);
    box-shadow: 0 0 0 5px rgba(18, 184, 191, 0.10);
    background: #fff;
}

/* ================================
   Username / Mobile Field
================================ */

#forgetpass___username {
    max-width: 100%;
    box-sizing: border-box;
    direction: ltr;
    text-align: left;
    border: 2px solid #dcdcdc !important;
    animation: danehFieldSoftGlow 3.8s ease-in-out infinite;
    margin-bottom: 5px;
}

#forgetpass___username::placeholder {
    color: #9aa8bb;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
}

#forgetpass___username:hover {
    transform: translateY(-1px);
    box-shadow:
        0 22px 42px rgba(18, 184, 191, 0.16),
        0 10px 22px rgba(26, 46, 82, 0.10);
}

#forgetpass___username:focus {
    animation: none;
    transform: translateY(-1px);
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, var(--daneh-primary), var(--daneh-blue)) border-box;
    border: 1px solid transparent;
    box-shadow:
        0 24px 46px rgba(18, 184, 191, 0.20),
        0 0 0 6px rgba(18, 184, 191, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.daneh-mobile-field .fabrikElement,
.daneh-mobile-field .controls {
    position: relative;
}

@keyframes danehFieldSoftGlow {

    0%,
    100% {
        box-shadow:
            0 18px 38px rgba(18, 184, 191, 0.13),
            0 8px 18px rgba(26, 46, 82, 0.08);
    }

    50% {
        box-shadow:
            0 20px 42px rgba(18, 184, 191, 0.19),
            0 10px 22px rgba(49, 103, 255, 0.10);
    }
}

/* ================================
   Captcha
================================ */

.fb_el_forgetpass___capcha {
    margin-right: 0;
}

.fb_el_forgetpass___capcha .controls .fabrikElement {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    justify-content: space-between;
    gap: 10px;
}

.captcha_input {
    width: 100%;
}

#forgetpass___capcha {
    max-width: 100%;
    width: 100%;
    height: 52px;
    min-height: 52px;
    padding: 0 14px;
    box-sizing: border-box;
    direction: ltr;
    text-align: center;
    border-radius: 18px;
    border: 2px solid #dcdcdc !important;
    background: rgba(255, 255, 255, 0.98);
    color: #132238;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 2.5px;
    box-shadow:
        0 12px 26px rgba(26, 46, 82, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#forgetpass___capcha::placeholder {
    color: #98a2b3;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
}

#forgetpass___capcha:hover {
    transform: translateY(-1px);
    border-color: rgba(18, 184, 191, 0.35);
}

#forgetpass___capcha:focus {
    transform: translateY(-1px);
    border-color: rgba(18, 184, 191, 0.80);
    box-shadow:
        0 14px 28px rgba(18, 184, 191, 0.14),
        0 0 0 5px rgba(18, 184, 191, 0.10);
}

.daneh-captcha-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 12px;
    align-items: end;
    margin: 4px 0 20px;
}

.daneh-captcha-inline .fabrikElementContainer,
.daneh-captcha-inline .control-group,
.daneh-captcha-inline .form-group {
    margin-bottom: 0;
}

.daneh-captcha-image-field label,
.daneh-captcha-image-field .fabrikLabel {
    display: none;
}

.daneh-captcha-image-field img,
.daneh-captcha-inline img,
.daneh-recover-formarea img[src*="captcha"],
.daneh-recover-formarea .fabrikCaptcha img {
    height: 48px;
    object-fit: contain;
    padding: 0;
    border: 1px solid var(--daneh-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(26, 46, 82, 0.08);
}

/* ================================
   Submit / Actions
================================ */

.daneh-recover-actions {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.daneh-recover-actions .fabrikActions,
.daneh-recover-actions .form-actions {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: center;
}

.daneh-recover-actions .row-fluid,
.daneh-recover-actions [class*="span"],
.daneh-recover-actions .btn-group {
    float: none;
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
}

.daneh-recover-formarea button[type="submit"],
.daneh-recover-formarea input[type="submit"],
.daneh-recover-formarea .btn-primary,
.daneh-recover-formarea .button {
    width: 100%;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 19px;
    background: linear-gradient(135deg, var(--daneh-primary), var(--daneh-blue));
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    box-shadow:
        0 18px 34px rgba(18, 184, 191, 0.23),
        inset 0 -2px 0 rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.daneh-recover-actions #fabrikSubmit_1 {
    width: min(100%, 230px);
    min-width: 210px;
    height: 58px;
    min-height: 58px;
    justify-self: center;
    border-radius: 17px !important;
}

.daneh-recover-formarea button[type="submit"]:hover,
.daneh-recover-formarea input[type="submit"]:hover,
.daneh-recover-formarea .btn-primary:hover {
    transform: translateY(-2px);
    filter: saturate(1.06);
    box-shadow:
        0 22px 42px rgba(18, 184, 191, 0.28),
        inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.daneh-recover-formarea button[type="submit"].is-cooldown,
.daneh-recover-formarea input[type="submit"].is-cooldown,
.daneh-recover-formarea .btn-primary.is-cooldown {
    opacity: 0.72;
    cursor: not-allowed;
    filter: grayscale(0.08);
    transform: none;
    box-shadow:
        0 10px 22px rgba(18, 184, 191, 0.12),
        inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}

.daneh-recover-formarea button[type="submit"].is-cooldown:hover,
.daneh-recover-formarea input[type="submit"].is-cooldown:hover,
.daneh-recover-formarea .btn-primary.is-cooldown:hover {
    transform: none;
}

.daneh-recover-formarea button[type="submit"].is-sending,
.daneh-recover-formarea input[type="submit"].is-sending,
.daneh-recover-formarea .btn-primary.is-sending {
    pointer-events: none;
    opacity: 0.86;
    cursor: wait;
}

/* ================================
   Messages / Errors
================================ */

.fabrikMainError.alert.alert-error.fabrikError {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 22px;
    padding: 15px 46px 15px 16px;
    border: 1px solid rgba(239, 64, 86, 0.18);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(239, 64, 86, 0.075), rgba(255, 255, 255, 0.92));
    color: #9f1f33;
    font-size: 13px;
    font-weight: 700;
    line-height: 2;
    text-align: right;
    box-shadow:
        0 14px 30px rgba(239, 64, 86, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.fabrikMainError.alert.alert-error.fabrikError .close {
    position: absolute;
    top: 13px;
    right: 13px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(239, 64, 86, 0.08);
    color: #9f1f33;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    opacity: 1;
    text-shadow: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.fabrikMainError.alert.alert-error.fabrikError .close:hover {
    background: rgba(239, 64, 86, 0.15);
    transform: rotate(90deg);
}

.fabrikMainError.fabrikHide {
    display: none;
}

.fabrikErrorMessage,
.fabrikErrorMessage.help-inline,
.fabrikErrorMessage.help-inline.text-danger {
    display: none;
    margin: 0;
    padding: 0;
    min-width: 0;
    min-height: 0;
    width: auto;
    height: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.fabrikErrorMessage:not(:empty),
.fabrikErrorMessage.help-inline:not(:empty),
.fabrikErrorMessage.help-inline.text-danger:not(:empty) {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(239, 64, 86, 0.08);
    color: #b42336;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.8;
    box-shadow: 0 8px 18px rgba(239, 64, 86, 0.06);
}

.daneh-recover-formarea .fabrikError,
.daneh-recover-formarea .help-block,
.daneh-recover-formarea .control-label .error {
    color: var(--daneh-danger);
    font-size: 12px;
    line-height: 1.8;
}

/* Error field states */
.fb_el_forgetpass___username.fabrikError #forgetpass___username,
.fb_el_forgetpass___username.error #forgetpass___username,
.fb_el_forgetpass___username.has-error #forgetpass___username,
.fb_el_forgetpass___username:has(.fabrikErrorMessage:not(:empty)) #forgetpass___username,
.fb_el_forgetpass___username:has(.help-inline.text-danger:not(:empty)) #forgetpass___username,
#forgetpass___username[aria-invalid="true"],
#forgetpass___username.invalid,
#forgetpass___username.error {
    animation: none;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, rgba(239, 64, 86, 0.88), rgba(255, 122, 139, 0.55)) border-box;
    border: 1px solid transparent;
    box-shadow:
        0 18px 38px rgba(239, 64, 86, 0.16),
        0 0 0 6px rgba(239, 64, 86, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.fb_el_forgetpass___capcha.fabrikError #forgetpass___capcha,
.fb_el_forgetpass___capcha.error #forgetpass___capcha,
.fb_el_forgetpass___capcha.has-error #forgetpass___capcha,
.fb_el_forgetpass___capcha:has(.fabrikErrorMessage:not(:empty)) #forgetpass___capcha,
.fb_el_forgetpass___capcha:has(.help-inline.text-danger:not(:empty)) #forgetpass___capcha,
#forgetpass___capcha[aria-invalid="true"],
#forgetpass___capcha.invalid,
#forgetpass___capcha.error {
    background: #fff;
    border-color: rgba(239, 64, 86, 0.82);
    box-shadow:
        0 14px 30px rgba(239, 64, 86, 0.15),
        0 0 0 5px rgba(239, 64, 86, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.daneh-recover-formarea:has(.fabrikMainError.alert-error:not(.fabrikHide)) #forgetpass___username,
.daneh-recover-formarea:has(.fabrikMainError.alert-error:not(.fabrikHide)) #forgetpass___capcha {
    animation: none;
    border-color: rgba(239, 64, 86, 0.78);
    box-shadow:
        0 14px 30px rgba(239, 64, 86, 0.15),
        0 0 0 5px rgba(239, 64, 86, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.daneh-recover-formarea:has(.fabrikMainError.alert-error:not(.fabrikHide)) #forgetpass___username:focus,
.daneh-recover-formarea:has(.fabrikMainError.alert-error:not(.fabrikHide)) #forgetpass___capcha:focus,
.fb_el_forgetpass___username:has(.fabrikErrorMessage:not(:empty)) #forgetpass___username:focus,
.fb_el_forgetpass___capcha:has(.fabrikErrorMessage:not(:empty)) #forgetpass___capcha:focus {
    border-color: rgba(239, 64, 86, 0.95);
    box-shadow:
        0 18px 36px rgba(239, 64, 86, 0.18),
        0 0 0 6px rgba(239, 64, 86, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* ================================
   SMS Status / Secure Note
================================ */

.daneh-sms-status-note,
.daneh-cooldown-note {
    display: none;
    margin-top: 12px;
    padding: 11px 13px;
    border-radius: 15px;
    font-size: 12px;
    line-height: 1.9;
    text-align: center;
}

.daneh-sms-status-note.is-success {
    display: block;
    background: rgba(18, 184, 191, 0.08);
    color: #216267;
    border: 1px solid rgba(18, 184, 191, 0.16);
}

.daneh-sms-status-note.is-error {
    display: block;
    background: rgba(239, 64, 86, 0.07);
    color: #b42336;
    border: 1px solid rgba(239, 64, 86, 0.14);
}

.daneh-secure-note {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
    color: #667085;
    font-size: 13px;
    line-height: 1.8;
}

label.fabrikLabel.control-label.fabrikTip {
    display: none !important;
}

.daneh-secure-note svg {
    width: 17px;
    height: 17px;
    fill: #98a2b3;
}

/* ================================
   Responsive
================================ */

@media (max-width: 768px) {

    #g-main .g-content {
        padding: 0;
        margin: 0;
    }

    .daneh-recover-page {
        margin: 10px auto 20px;
    }

    .daneh-recover-card {
        padding: 24px 18px;
        border-radius: 24px;
    }

    .daneh-recover-head {
        align-items: flex-start;
    }

    .daneh-recover-icon {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
        border-radius: 20px;
    }

    .daneh-recover-title {
        font-size: 24px;
    }

    .daneh-recover-flow {
        grid-template-columns: 1fr;
    }

    .daneh-recover-flow-arrow {
        display: none;
    }
}

@media (max-width: 640px) {
    .daneh-recover-formarea {
        width: 100%;
    }

    #forgetpass___username {
        height: 58px;
        min-height: 58px;
        padding-left: 60px;
        border-radius: 20px;
        font-size: 16px;
    }

    .daneh-captcha-inline {
        grid-template-columns: 1fr;
    }

    .daneh-captcha-image-field img,
    .daneh-captcha-inline img,
    .daneh-recover-formarea img[src*="captcha"],
    .daneh-recover-formarea .fabrikCaptcha img {
        width: 100%;
        max-width: 100%;
    }

    .fabrikMainError.alert.alert-error.fabrikError {
        padding: 14px 42px 14px 14px;
        border-radius: 16px;
        font-size: 12px;
        line-height: 1.9;
    }
}

/* ================================
   Necessary Overrides
   These are intentionally kept because Fabrik/Bootstrap or inline styles may override them.
================================ */

.daneh-recover-actions .fabrikActions,
.daneh-recover-actions .form-actions {
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

.daneh-recover-actions .row-fluid,
.daneh-recover-actions [class*="span"],
.daneh-recover-actions .btn-group {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}

.daneh-recover-actions #fabrikSubmit_1 {
    width: min(100%, 230px) !important;
}

.fabrikErrorMessage:empty,
.fabrikErrorMessage.help-inline:empty,
.fabrikErrorMessage.help-inline.text-danger:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}


.fabrikActions.form-actions button {
    margin: 0;
}



/* ================================
   SMS Sent / Login Step
================================ */

.daneh-recover-page.is-sms-sent .daneh-recover-notice {
    display: none;
}

.daneh-recover-flow-item.is-done {
    border-color: rgba(18, 184, 191, 0.18);
    background: rgba(18, 184, 191, 0.035);
}

.daneh-recover-flow-item.is-done span {
    background: #e7f8f6;
    color: var(--daneh-primary-dark);
}

.daneh-login-step {
    width: min(100%, 430px);
    margin: 8px auto 0;
}

.daneh-login-success {
    display: grid;
    gap: 7px;
    margin-bottom: 22px;
    padding: 15px 16px;
    border: 1px solid rgba(18, 184, 191, 0.20);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(18, 184, 191, 0.08), rgba(49, 103, 255, 0.035));
    text-align: right;
}

.daneh-login-success strong {
    color: var(--daneh-primary-dark);
    font-size: 15px;
    font-weight: 900;
}

.daneh-login-success span {
    color: #4b5d73;
    font-size: 13px;
    line-height: 2;
}

.daneh-login-form {
    display: grid;
    gap: 15px;
}

.daneh-login-field label {
    display: block;
    margin-bottom: 8px;
    color: #25324b;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.8;
}

.daneh-login-field input {
    width: 100%;
    height: 58px;
    padding: 0 16px;
    border: 2px solid #dcdcdc;
    border-radius: 20px;
    background: #fff;
    color: #132238;
    font-size: 15px;
    font-weight: 800;
    outline: none;
    box-sizing: border-box;
    box-shadow:
        0 12px 26px rgba(26, 46, 82, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.daneh-login-field input::placeholder {
    color: #98a2b3;
    font-size: 13px;
    font-weight: 700;
}

.daneh-login-field input:focus {
    transform: translateY(-1px);
    border-color: rgba(18, 184, 191, 0.78);
    box-shadow:
        0 15px 30px rgba(18, 184, 191, 0.13),
        0 0 0 5px rgba(18, 184, 191, 0.09);
}

.daneh-login-submit {
    width: 100%;
    height: 58px;
    margin-top: 4px;
    border: 0;
    border-radius: 19px;
    background: linear-gradient(135deg, var(--daneh-primary), var(--daneh-blue));
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    box-shadow:
        0 18px 34px rgba(18, 184, 191, 0.23),
        inset 0 -2px 0 rgba(0, 0, 0, 0.12);
    transition: transform .2s ease, box-shadow .2s ease;
}

.daneh-login-submit:hover {
    transform: translateY(-2px);
    box-shadow:
        0 22px 42px rgba(18, 184, 191, 0.28),
        inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.daneh-login-back {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin-top: 16px;
    color: #667085;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.daneh-login-back:hover {
    color: var(--daneh-primary-dark);
}

/* ================================
   Joomla / Fabrik System Messages
   Render Joomla queued messages inside the same visual language.
================================ */

.daneh-system-messages {
    display: grid;
    gap: 10px;
    margin: 0 0 20px;
}

.daneh-system-message {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 46px 15px 16px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 700;
    line-height: 2;
    text-align: right;
    box-shadow:
        0 14px 30px rgba(26, 46, 82, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.daneh-system-message-error,
.daneh-system-message-danger,
.daneh-system-message-warning,
.daneh-system-message-notice {
    border: 1px solid rgba(239, 64, 86, 0.18);
    background:
        linear-gradient(135deg, rgba(239, 64, 86, 0.075), rgba(255, 255, 255, 0.92));
    color: #9f1f33;
}

.daneh-system-message-message,
.daneh-system-message-success,
.daneh-system-message-info {
    border: 1px solid rgba(18, 184, 191, 0.18);
    background:
        linear-gradient(135deg, rgba(18, 184, 191, 0.08), rgba(255, 255, 255, 0.92));
    color: #216267;
}

.daneh-system-message .close {
    position: absolute;
    top: 13px;
    right: 13px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(239, 64, 86, 0.08);
    color: inherit;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    opacity: 1;
    text-shadow: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.daneh-system-message .close:hover {
    background: rgba(239, 64, 86, 0.15);
    transform: rotate(90deg);
}
