#nfAccountPortal,
#nfAccountPortal * { box-sizing: border-box; }

#nfAccountPortal {
    direction: rtl;
    min-height: 72vh;
    padding: clamp(28px, 6vw, 80px) 14px;
    color: #173126;
    background: radial-gradient(circle at 15% 0%, rgba(146,192,31,.13), transparent 32%), #f4f8f6;
    font-family: Cairo, Tahoma, Arial, sans-serif;
}

.nf-account-shell { width: min(860px, 100%); margin: 0 auto; }
.nf-account-card { overflow: hidden; padding: clamp(20px, 4vw, 38px); border: 1px solid #dce8e1; border-radius: 28px; background: #fff; box-shadow: 0 24px 65px rgba(7,84,56,.12); }
.nf-account-card header { margin-bottom: 22px; text-align: center; }
.nf-account-card header span { color: #8ab81d; font-weight: 900; }
.nf-account-card header h1 { margin: 5px 0 7px; color: #075438; font-size: clamp(27px, 4vw, 40px); line-height: 1.35; }
.nf-account-card header p { margin: 0; color: #6b7972; }
.nf-account-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 22px; padding: 6px; border-radius: 16px; background: #eef5f1; }
.nf-account-tabs button { min-height: 46px; border: 0; border-radius: 12px; color: #50635a; background: transparent; cursor: pointer; font: inherit; font-weight: 900; }
.nf-account-tabs button.is-active { color: #fff; background: #075438; box-shadow: 0 9px 20px rgba(7,84,56,.18); }
.nf-account-form { display: none; gap: 15px; }
.nf-account-form.is-active { display: grid; }
.nf-account-form label { display: grid; gap: 7px; color: #33483e; font-size: 13px; font-weight: 850; }
.nf-account-form input { width: 100%; min-width: 0; height: 49px; margin: 0; padding: 0 13px; border: 1px solid #d7e4dc; border-radius: 13px; outline: 0; color: #173126; background: #fbfdfc; font-family: Cairo, Tahoma, Arial, sans-serif; font-size: 15px; font-weight: 400; line-height: 1.4; }
.nf-account-form input:focus { border-color: #0b744c; box-shadow: 0 0 0 3px rgba(11,116,76,.1); }
.nf-account-form > button { min-height: 52px; margin-top: 4px; border: 0; border-radius: 14px; color: #fff; background: linear-gradient(135deg,#075438,#0b744c); cursor: pointer; font: inherit; font-weight: 900; }
.nf-account-two { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.nf-account-three { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; }
.nf-account-check { display: flex !important; align-items: center; gap: 8px !important; width: fit-content; }
.nf-account-check input { width: 18px; height: 18px; }
.nf-account-help { margin: -6px 0 0; color: #77857e; font-size: 12px; }
.nf-account-notice { margin-bottom: 15px; padding: 13px 15px; border: 1px solid; border-radius: 13px; font-weight: 850; }
.nf-account-notice.is-error { color: #842029; border-color: #f5c2c7; background: #f8d7da; }
.nf-account-notice.is-success { color: #0f5132; border-color: #badbcc; background: #d1e7dd; }
.nf-account-password-box { margin-top: 5px; padding: 17px; border: 1px solid #dce8e1; border-radius: 18px; background: #f7faf8; }
.nf-account-password-box h2 { margin: 0; color: #075438; font-size: 18px; }
.nf-account-password-box > p { margin: 4px 0 14px; color: #718078; font-size: 12px; }

@media (max-width: 650px) {
    #nfAccountPortal { padding-inline: 10px; }
    .nf-account-card { padding: 18px 13px; border-radius: 20px; }
    .nf-account-two, .nf-account-three { grid-template-columns: 1fr; }
}


/* v30.0.2: clean field typography and password visibility controls */
.nf-account-form input,
.nf-account-form input::placeholder {
    font-family: Cairo, Tahoma, Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
}
.nf-password-control { position: relative; display: block; width: 100%; }
.nf-password-control > input { padding-inline-start: 48px !important; }
.nf-password-toggle {
    position: absolute; inset-inline-start: 7px; top: 50%; transform: translateY(-50%);
    display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
    border: 0; border-radius: 10px; color: #667b70; background: transparent;
    cursor: pointer; z-index: 2;
}
.nf-password-toggle:hover,
.nf-password-toggle:focus-visible { color: #075438; background: #edf5f1; outline: 0; }
.nf-password-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nf-password-toggle.is-visible svg { opacity: .72; }
.nf-account-form input.nf-field-error { border-color: #c62828 !important; box-shadow: 0 0 0 3px rgba(198,40,40,.11) !important; }
