body{overflow:hidden}
.header,.footer{display:none !important;}
main{margin:0 !important;min-height:100vh !important;min-height:100dvh !important;height:100vh !important;height:100dvh !important;overflow:hidden}
.form-logreg-with{min-height:100vh !important;min-height:100dvh !important;height:100vh !important;height:100dvh !important}
.form-logreg-with .bg-site{top:0;right:0;height:100%}
.form-logreg-with .shape{height:100%;top:0;right:50%;transform:translateX(50%);opacity:.2}
.form-logreg-with .back-btn{right:20px;top:20px;padding:8px 12px;z-index:1000;border-bottom:3px #0000002e solid}
.form-logreg-with .back-btn:hover{opacity:.8}
.form-logreg-with .entery{z-index:9999;width:400px;max-width:calc(100% - 40px);max-height:calc(100% - 40px);right:50%;top:50%;transform:translate(50%, -50%)}
.form-logreg-with .entery .head .logo{height:70px;margin-bottom:10px}
.form-logreg-with .entery .inside{padding:25px;box-shadow:0 4px 40px rgba(119, 132, 157, .1);background:#ffffffe8;backdrop-filter:blur(10px);max-height:calc(100vh - 125px);max-height:calc(100dvh - 125px)}
:root {
    --color: #746e49;
    --color2: #c7c1a5;
    --font: dana, Tahoma, sans-serif;
    --fontb: yekan, Tahoma, sans-serif;
    --body: #F9F9F8;
    --header: rgba(238, 238, 238, 0.7);
    --footer: #2D333F;
}

body {
    overflow: hidden;
    background-color: var(--body) !important;
    font-family: var(--fontb);
    color: #3b392b;
}
body *{ transition-duration: 0s;}

.header, .footer { display: none !important; }

main {
    margin: 0 !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    height: 100vh !important;
    height: 100dvh !important;
    overflow: hidden;
    background-color: var(--body);
}

.form-logreg-with {
    min-height: 100vh !important;
    min-height: 100dvh !important;
    height: 100vh !important;
    height: 100dvh !important;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(199, 193, 165, .20), transparent 35%),
        radial-gradient(ellipse at 85% 80%, rgba(116, 110, 73, .10), transparent 32%),
        radial-gradient(circle at 50% 30%, #fff 0%, var(--body) 100%);
}

.form-logreg-with::before,
.form-logreg-with::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(2px);
    animation: nb-float 8s ease-in-out infinite;
}

.form-logreg-with::before {
    top: 12%;
    left: 8%;
    background: radial-gradient(circle, rgba(199, 193, 165, .24), transparent 70%);
}

.form-logreg-with::after {
    right: 7%;
    bottom: 8%;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(116, 110, 73, .12), transparent 70%);
    animation-delay: -3s;
}

@keyframes nb-float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -16px, 0); }
}

.form-logreg-with .bg-site {
    top: 0;
    right: 0;
    height: 100%;
    pointer-events: none;
    opacity: 0.15;
}

.form-logreg-with .shape {
    height: 100%;
    top: 0;
    right: 50%;
    transform: translateX(50%);
    opacity: 0.08;
    pointer-events: none;
}

/* دکمه بازگشت */
.form-logreg-with .back-btn {
    position: absolute;
    right: 25px;
    top: 25px;
    padding: 9px 18px;
    z-index: 1000;
    background: #ffffff;
    border: 1px solid var(--color2);
    border-radius: 12px;
    color: var(--color);
    text-decoration: none;
    font-family: var(--font);
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(116, 110, 73, 0.08);
    transition: all 0.3s ease;
}

.form-logreg-with .back-btn:hover {
    background: var(--color);
    color: #ffffff;
    border-color: var(--color);
    transform: translateX(-3px);
}

/* جعبه محتوای فرم */
.form-logreg-with .entery {
    z-index: 9999;
    width: 440px;
    max-width: calc(100% - 36px);
    position: absolute;
    right: 50%;
    top: 50%;
    transform: translate(50%, -50%);
    animation: nb-card-enter .65s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes nb-card-enter {
    from { opacity: 0; filter: blur(8px); }
    to   { opacity: 1; filter: blur(0); }
}

.form-logreg-with .entery .head .logo {
    height: 65px;
    margin-bottom: 15px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(116, 110, 73, .12));
    transition: transform .3s ease, filter .3s ease;
}

.form-logreg-with .entery .head a:hover .logo {
    transform: translateY(-3px);
    filter: drop-shadow(0 12px 18px rgba(116, 110, 73, .20));
}

.form-logreg-with .entery .inside {
    padding: 32px 28px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(199, 193, 165, .55);
    box-shadow: 0 24px 70px rgba(57, 53, 34, .10), 0 4px 14px rgba(116, 110, 73, .06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    max-height: calc(100vh - 130px);
    max-height: calc(100dvh - 130px);
    overflow-y: auto;
}

/* فرم و فیلدها */
.nb-auth-form.nb-form-enter {
    animation: nb-form-enter .38s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes nb-form-enter {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nb-auth-form .form-group {
    margin-bottom: 18px;
    text-align: right;
}

.nb-auth-form label {
    display: block;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 500;
    color: #4b4834;
    margin-bottom: 10px;
    transition: color .2s ease;
}

.nb-auth-form .form-group:focus-within > label {
    color: var(--color);
}

.nb-auth-form .rt-input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    font-family: var(--fontb);
    font-size: 14px;
    border-radius: 12px;
    border: 1.5px solid #e7e5dc;
    background-color: #fafaf9;
    font-weight:bold;
    color: #2D333F;
    box-sizing: border-box;
    outline: none;
    box-shadow: 0 2px 7px rgba(45, 51, 63, .025);
    transition: all 0.25s ease;
}

.nb-auth-form .rt-input:hover {
    border-color: #c7c1a5;
}

.nb-auth-form .rt-input:focus {
    border-color: var(--color);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(116, 110, 73, 0.12);
    transform: translateY(-1px);
}

/* دکمه‌های فرم */
.nb-auth-btn-primary,
.nb-auth-btn-secondary {
    position: relative;
    overflow: hidden;
    min-height: 46px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.nb-auth-btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    background: var(--color);
    border: none;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(116, 110, 73, 0.28);
}

.nb-auth-btn-primary::before {
    content: "";
    position: absolute;
    top: -60%;
    left: -40%;
    width: 25%;
    height: 220%;
    background: rgba(255, 255, 255, .16);
    transform: rotate(25deg);
    transition: left .55s ease;
    pointer-events: none;
}

.nb-auth-btn-primary:hover::before {
    left: 125%;
}

.nb-auth-btn-primary:hover {
    background: #5f5a3b;
    box-shadow: 0 8px 22px rgba(116, 110, 73, 0.35);
    transform: translateY(-1px);
}

.nb-auth-btn-secondary {
    width: 100%;
    padding: 11px;
    font-size: 14px;
    font-weight: bold;
    color: var(--color);
    background: rgba(199, 193, 165, 0.2);
    border: 1px solid var(--color2);
    border-radius: 12px;
}

.nb-auth-btn-secondary:hover {
    background: rgba(199, 193, 165, 0.4);
    color: #4b4834;
}

.nb-auth-btn-text {
    background: none;
    border: none;
    color: #7d7966;
    font-family: var(--fontb);
    font-size: 12.5px;
    cursor: pointer;
    font-weight:bold;
    transition: color 0.2s ease;
    text-decoration: none;
}

.nb-auth-btn-text:hover {
    color: var(--color);
    text-decoration: underline;
}

/* حالت لودینگ دکمه‌ها */
.nb-auth-btn-primary:disabled,
.nb-auth-btn-secondary:disabled {
    cursor: wait;
}

.nb-auth-btn-primary.is-loading,
.nb-auth-btn-secondary.is-loading {
    color: transparent !important;
    pointer-events: none;
}

.nb-auth-btn-primary.is-loading::after,
.nb-auth-btn-secondary.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 19px;
    height: 19px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, .38);
    border-top-color: #fff;
    border-radius: 50%;
    animation: nb-spin .7s linear infinite;
}

.nb-auth-btn-secondary.is-loading::after {
    border-color: rgba(116, 110, 73, .25);
    border-top-color: var(--color);
}

@keyframes nb-spin {
    to { transform: rotate(360deg); }
}

/* اعلان پیام‌ها */
#nb-alert-box {
    display: none;
    padding: 12px 14px;
    margin-bottom: 18px;
    border-radius: 12px;
    font-family: var(--fontb);
    font-size: 13px;
    font-weight:bold;
    line-height: 1.6;
    text-align: right;
    box-shadow: 0 7px 20px rgba(45, 51, 63, .045);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}

/* پنج خانه ورود کد OTP */
.nb-otp-fields {
    display: flex;
    direction: ltr;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.nb-otp-digit {
    width: 54px;
    height: 58px;
    padding: 0 !important;
    border: 1.5px solid #e7e5dc;
    border-radius: 14px;
    outline: none;
    background: linear-gradient(180deg, #fff, #fafaf9);
    color: #3b392b;
    font-family: var(--font);
    font-size: 23px;
    font-weight: 700;
    text-align: center;
    direction: ltr;
    box-shadow: 0 4px 12px rgba(45, 51, 63, .04);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}

.nb-otp-digit:hover {
    border-color: #c7c1a5;
}

.nb-otp-digit:focus {
    border-color: var(--color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(116, 110, 73, .13);
    transform: translateY(-3px);
}

.nb-otp-digit:not(:placeholder-shown) {
    border-color: rgba(116, 110, 73, .48);
    background: #fff;
}

.nb-auth-btn-text:focus-visible,
.nb-auth-btn-primary:focus-visible,
.nb-auth-btn-secondary:focus-visible,
.back-btn:focus-visible {
    outline: 3px solid rgba(116, 110, 73, .28);
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .form-logreg-with .back-btn {
        top: 14px;
        right: 14px;
        padding: 8px 12px;
    }
    .form-logreg-with .entery .inside {
        padding: 25px 20px;
    }
    .nb-otp-fields {
        gap: 7px;
    }
    .nb-otp-digit {
        width: min(54px, 15vw);
        height: 54px;
        border-radius: 12px;
        font-size: 21px;
    }
}