/* صفحات ورود / عضویت / بازیابی رمز — هم‌زبان با طراحی جدید سایت رایکت */

.rk-auth {
    --rk-navy: #0b3a5a;
    --rk-brand: #0f4c75;
    --rk-brand-hover: #0c3d5e;
    --rk-sky: #7dd3fc;
    --rk-cyan: #38bdf8;
    --rk-gold: #f7ac1e;
    --rk-text: #0f172a;
    --rk-body: #334155;
    --rk-muted: #64748b;
    --rk-faint: #94a3b8;
    --rk-border: #e2e8f0;
    --rk-soft: #f8fafc;
    --rk-ring: rgba(15, 76, 117, .14);

    position: relative;
    overflow: hidden;
    background: #f5f7fa;
    padding-bottom: 72px;
    color: var(--rk-body);
}

.rk-auth *,
.rk-auth *::before,
.rk-auth *::after {
    box-sizing: border-box;
}

/* ---------- پس‌زمینه‌ی هیرو ---------- */

.rk-auth-bg {
    position: absolute;
    inset: 0 0 auto 0;
    height: 580px;
    background: var(--rk-navy);
    overflow: hidden;
    pointer-events: none;
}

.rk-auth--wide .rk-auth-bg {
    height: 400px;
}

.rk-auth-grid {
    position: absolute;
    inset: 0;
    opacity: .07;
    background-image: linear-gradient(rgba(255, 255, 255, .6) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .6) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.rk-auth-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(64px);
}

.rk-auth-glow--a {
    left: -160px;
    top: -160px;
    width: 480px;
    height: 480px;
    background: rgba(7, 122, 184, .3);
}

.rk-auth-glow--b {
    right: -96px;
    bottom: -128px;
    width: 340px;
    height: 340px;
    background: rgba(56, 189, 248, .1);
}

/* ---------- چیدمان ---------- */

.rk-auth-wrap {
    position: relative;
    z-index: 1;
    max-width: 1140px;
    margin: 0 auto;
    padding: 44px 16px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 470px;
    gap: 64px;
    align-items: start;
}

.rk-auth--wide .rk-auth-wrap {
    grid-template-columns: minmax(0, 1fr);
    max-width: 860px;
    gap: 30px;
}

/* ---------- معرفی (ستون تیره) ---------- */

.rk-auth-intro {
    padding-top: 18px;
}

.rk-auth--wide .rk-auth-intro {
    text-align: center;
    padding-top: 0;
}

.rk-crumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 26px;
}

.rk-auth--wide .rk-crumb {
    justify-content: center;
}

.rk-crumb a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, .55) !important;
    text-decoration: none !important;
    transition: color .15s;
}

.rk-crumb a:hover {
    color: #fff !important;
}

.rk-crumb .rk-crumb-sep {
    color: rgba(255, 255, 255, .3);
    font-size: 10px;
}

.rk-crumb .rk-crumb-current {
    color: var(--rk-sky);
    font-weight: 600;
}

.rk-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .8);
    font-size: 12px;
    font-weight: 700;
}

.rk-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rk-cyan);
}

.rk-auth .rk-title {
    margin: 0;
    color: #fff;
    font-size: 34px !important;
    font-weight: 900;
    line-height: 1.6;
}

.rk-auth .rk-title span {
    color: var(--rk-gold);
}

.rk-lead {
    margin: 8px 0 0;
    max-width: 520px;
    color: rgba(255, 255, 255, .65);
    font-size: 14px;
    line-height: 2;
}

.rk-auth--wide .rk-lead {
    margin-right: auto;
    margin-left: auto;
}

.rk-perks {
    list-style: none;
    margin: 30px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
    max-width: 480px;
}

.rk-perks li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
}

.rk-perk-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .15);
    color: var(--rk-sky);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.rk-perks strong {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
}

.rk-perks small {
    display: block;
    color: rgba(255, 255, 255, .55);
    font-size: 12px;
    line-height: 1.8;
}

.rk-auth--wide .rk-perks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: none;
    margin-top: 22px;
    gap: 10px;
}

.rk-auth--wide .rk-perks li {
    padding: 8px 14px 8px 16px;
    border-radius: 999px;
}

.rk-auth--wide .rk-perk-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 13px;
}

.rk-auth--wide .rk-perks strong {
    font-size: 13px;
}

.rk-auth--wide .rk-perks small {
    display: none;
}

/* ---------- کارت فرم ---------- */

.rk-card {
    background: #fff;
    border: 1px solid var(--rk-border);
    border-radius: 24px;
    padding: 34px 32px 28px;
    box-shadow: 0 30px 60px -30px rgba(11, 58, 90, .35);
}

.rk-card-head {
    text-align: center;
    margin-bottom: 26px;
}

.rk-card-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 18px;
    background: #f1f5f9;
    border: 1px solid var(--rk-border);
    color: var(--rk-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    transform: rotate(3deg);
}

.rk-card-icon i {
    transform: rotate(-3deg);
}

.rk-auth .rk-card-title {
    margin: 0 0 4px;
    color: var(--rk-text);
    font-size: 20px !important;
    font-weight: 900;
    line-height: 1.7;
}

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

/* ---------- فیلدها ---------- */

.rk-field {
    margin-bottom: 18px;
}

.rk-auth .rk-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--rk-body);
    font-size: 13px;
    font-weight: 700;
}

.rk-label small {
    color: var(--rk-faint);
    font-weight: 500;
    font-size: 11.5px;
}

.rk-label a {
    color: var(--rk-brand) !important;
    font-weight: 700;
    font-size: 12px;
    text-decoration: none !important;
}

.rk-label a:hover {
    text-decoration: underline !important;
}

.rk-control,
.rk-auth .rk-control.input-group {
    position: relative;
    display: block;
    width: 100%;
}

.rk-control > .rk-control-icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: var(--rk-faint);
    font-size: 15px;
    pointer-events: none;
    z-index: 3;
    transition: color .15s;
}

.rk-control:focus-within > .rk-control-icon {
    color: var(--rk-brand);
}

.rk-auth input.form-control,
.rk-auth input.field,
.rk-auth select.form-control,
.rk-auth select.field,
.rk-auth textarea.form-control,
.rk-auth .rk-card input[type="text"],
.rk-auth .rk-card input[type="email"],
.rk-auth .rk-card input[type="password"],
.rk-auth .rk-card input[type="tel"],
.rk-auth .rk-card input[type="number"],
.rk-auth .rk-card select {
    display: block;
    width: 100% !important;
    height: 48px;
    padding: 10px 14px;
    border: 1.5px solid var(--rk-border) !important;
    border-radius: 12px !important;
    background-color: var(--rk-soft);
    color: var(--rk-text);
    font-size: 14px;
    box-shadow: none !important;
    outline: none;
    transition: border-color .15s, background-color .15s, box-shadow .15s;
}

.rk-auth .rk-card textarea {
    height: auto;
    min-height: 96px;
}

.rk-auth .rk-card select {
    padding-left: 36px;
}

.rk-auth .rk-control > .rk-control-icon ~ input {
    padding-right: 42px;
}

.rk-auth .rk-control .btn-reveal-pw + input,
.rk-auth .rk-control input.pw-input {
    padding-left: 46px;
}

.rk-auth .rk-card input::placeholder {
    color: var(--rk-faint);
}

.rk-auth .rk-card input:focus,
.rk-auth .rk-card select:focus,
.rk-auth .rk-card textarea:focus {
    background-color: #fff;
    border-color: rgba(15, 76, 117, .55) !important;
    box-shadow: 0 0 0 4px var(--rk-ring) !important;
}

.rk-auth .rk-card input.is-invalid {
    border-color: #ef4444 !important;
}

.rk-auth .rk-card input.is-warning {
    border-color: #f59e0b !important;
}

.rk-auth .rk-card input.is-valid {
    border-color: #22c55e !important;
}

.rk-ltr,
.rk-auth input[type="email"],
.rk-auth input[type="tel"] {
    direction: ltr;
    text-align: left;
}

.rk-auth input[type="email"]::placeholder,
.rk-auth input[type="tel"]::placeholder {
    text-align: left;
}

.rk-auth .btn-reveal-pw {
    position: absolute !important;
    top: 50%;
    left: 6px;
    transform: translateY(-50%);
    z-index: 4;
    width: 36px;
    height: 36px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: transparent !important;
    color: var(--rk-faint) !important;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
}

.rk-auth .btn-reveal-pw:hover {
    background: #eef2f6 !important;
    color: var(--rk-brand) !important;
}

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

.rk-grid-3 {
    display: grid;
    grid-template-columns: 2fr 2fr 1.4fr;
    gap: 0 16px;
}

.rk-span-2 {
    grid-column: span 2;
}

.rk-help {
    display: block;
    margin-top: 6px;
    color: var(--rk-faint);
    font-size: 11.5px;
    line-height: 1.8;
}

/* ---------- چک‌باکس / لینک‌ها ---------- */

.rk-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 22px;
}

.rk-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--rk-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    line-height: 1.9;
}

.rk-auth .rk-check input[type="checkbox"],
.rk-auth .rk-custom-field input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 0;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: background .15s, border-color .15s;
}

.rk-auth .rk-check input[type="checkbox"]:checked,
.rk-auth .rk-custom-field input[type="checkbox"]:checked {
    background: var(--rk-brand);
    border-color: var(--rk-brand);
}

.rk-auth .rk-check input[type="checkbox"]:checked::after,
.rk-auth .rk-custom-field input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.rk-auth .rk-check input[type="checkbox"]:focus-visible {
    box-shadow: 0 0 0 4px var(--rk-ring);
}

.rk-check a,
.rk-link {
    color: var(--rk-brand) !important;
    font-weight: 700;
    text-decoration: none !important;
}

.rk-check a:hover,
.rk-link:hover {
    text-decoration: underline !important;
}

/* ---------- دکمه‌ها ---------- */

.rk-auth .rk-btn,
.rk-auth input.rk-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    height: 50px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    background: var(--rk-brand);
    color: #fff !important;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: none;
    transition: background-color .15s;
}

.rk-auth .rk-btn:hover,
.rk-auth .rk-btn:focus-visible {
    background: var(--rk-brand-hover);
    color: #fff !important;
}

.rk-auth .rk-btn:disabled,
.rk-auth input.rk-btn[disabled] {
    background: #94a3b8;
    cursor: not-allowed;
}

.rk-auth .rk-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 40px;
    padding: 0 14px;
    border: 1.5px solid var(--rk-border);
    border-radius: 10px;
    background: #fff;
    color: var(--rk-body) !important;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
}

.rk-auth .rk-btn-ghost:hover {
    border-color: rgba(15, 76, 117, .45);
    color: var(--rk-brand) !important;
    background: #f8fafc;
}

.rk-card-foot {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eef2f6;
    text-align: center;
    color: var(--rk-muted);
    font-size: 13px;
}

.rk-card-foot + .rk-card-foot {
    margin-top: 12px;
    padding-top: 0;
    border-top: 0;
}

/* ---------- الرت‌ها ---------- */

.rk-auth .alert {
    margin: 0 0 20px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.9;
    text-align: right;
}

.rk-auth .alert ul {
    margin: 6px 0 0;
    padding-right: 18px;
}

.rk-auth .alert-danger { background: #fef2f2; border-color: #fee2e2; color: #b91c1c; }
.rk-auth .alert-success { background: #f0fdf4; border-color: #dcfce7; color: #15803d; }
.rk-auth .alert-warning { background: #fffbeb; border-color: #fef3c7; color: #b45309; }
.rk-auth .alert-info { background: #eff6ff; border-color: #dbeafe; color: #1d4ed8; }

.rk-auth .alert h2 {
    font-size: 15px;
    font-weight: 800;
    margin: 0;
}

/* ---------- کپچا ---------- */

.rk-auth .rk-captcha {
    margin: 0 0 18px !important;
    display: block !important;
}

.rk-auth .rk-captcha .captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1.5px dashed var(--rk-border);
    border-radius: 14px;
    background: var(--rk-soft);
}

.rk-auth .rk-captcha .captcha-image {
    flex: 0 0 auto;
    height: 48px;
    padding: 0 6px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--rk-border);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.rk-auth .rk-captcha .captcha-image img {
    max-height: 40px;
}

.rk-auth .rk-captcha .input-group {
    position: relative;
    flex: 1 1 auto;
    display: block;
}

.rk-auth .rk-captcha .input-group-text {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 3;
    border: 0 !important;
    background: transparent !important;
    color: var(--rk-faint);
    padding: 0 14px;
}

.rk-auth .rk-captcha input.form-control {
    padding-right: 42px;
    background: #fff;
    text-align: center;
    letter-spacing: 3px;
    font-weight: 700;
    direction: ltr;
}

/* ---------- ثبت‌نام: بخش‌ها ---------- */

.rk-section + .rk-section {
    margin-top: 10px;
    padding-top: 26px;
    border-top: 1px dashed var(--rk-border);
}

.rk-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.rk-section-num {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: #eaf2f8;
    color: var(--rk-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.rk-auth .rk-section-title {
    margin: 0;
    color: var(--rk-text);
    font-size: 15px !important;
    font-weight: 800;
    line-height: 1.6;
}

.rk-section-sub {
    display: block;
    color: var(--rk-muted);
    font-size: 12px;
    font-weight: 500;
}

.rk-auth .intl-tel-input,
.rk-auth .iti {
    display: block;
    width: 100%;
}

.rk-auth .intl-tel-input input,
.rk-auth .iti input {
    padding-left: 52px !important;
}

.rk-auth .intl-tel-input.separate-dial-code input,
.rk-auth .iti--separate-dial-code input {
    padding-left: 96px !important;
}

.rk-strength {
    margin-top: 2px;
}

.rk-auth .rk-strength .progress {
    height: 6px;
    border-radius: 999px;
    background: #eef2f6;
    overflow: hidden;
}

.rk-auth .rk-strength .progress-bar {
    border-radius: 999px;
    transition: width .25s ease;
}

.rk-strength-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
}

.rk-auth #passwordStrengthTextLabel {
    margin: 0;
    color: var(--rk-muted);
    font-size: 11.5px;
}

.rk-auth .rk-custom-field .control > input[type="checkbox"] {
    width: 22px !important;
    height: 22px;
    display: block;
}

.rk-optin {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--rk-soft);
    border: 1px solid var(--rk-border);
}

.rk-optin p {
    margin: 0;
    font-size: 12.5px;
    color: var(--rk-muted);
    line-height: 1.9;
}

.rk-optin strong {
    display: block;
    color: var(--rk-text);
    font-size: 13.5px;
}

.rk-submit-bar {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #eef2f6;
}

.rk-auth .rk-submit-bar .rk-check {
    margin-bottom: 16px;
}

/* ---------- بازیابی رمز ---------- */

.rk-auth .rk-question {
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 13px;
    font-weight: 700;
}

.rk-success {
    text-align: center;
}

.rk-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #f0fdf4;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.rk-success p {
    color: var(--rk-muted);
    font-size: 13.5px;
    line-height: 2;
}

/* ---------- سازگاری با ماژول ورود با موبایل (RaySMS) ---------- */

.rk-auth .rs-otp-entry {
    margin: 18px 0 0;
}

.rk-auth .rs-otp-divider {
    color: var(--rk-faint);
    margin-bottom: 18px;
}

.rk-auth .rs-otp-divider::before,
.rk-auth .rs-otp-divider::after {
    background: #eef2f6;
}

.rk-auth .rs-otp-open {
    height: 50px;
    border-radius: 12px;
    border-color: var(--rk-border);
    color: var(--rk-text);
    font-size: 14px;
    font-weight: 800;
}

.rk-auth .rs-otp-open i {
    color: var(--rk-brand);
}

.rk-auth .rs-otp-open:hover {
    border-color: var(--rk-brand);
    background: #f8fafc;
    color: var(--rk-brand);
}

/* ---------- ریسپانسیو ---------- */

@media (max-width: 1100px) {
    .rk-auth-wrap {
        grid-template-columns: minmax(0, 1fr) 440px;
        gap: 40px;
    }

    .rk-auth .rk-title {
        font-size: 29px !important;
    }
}

@media (max-width: 991px) {
    .rk-auth-bg,
    .rk-auth--wide .rk-auth-bg {
        height: 330px;
    }

    .rk-auth-wrap {
        grid-template-columns: minmax(0, 1fr);
        max-width: 560px;
        gap: 26px;
        padding-top: 30px;
    }

    .rk-auth--wide .rk-auth-wrap {
        max-width: 860px;
    }

    .rk-auth-intro {
        text-align: center;
        padding-top: 0;
    }

    .rk-crumb {
        justify-content: center;
        margin-bottom: 18px;
    }

    .rk-lead {
        margin-right: auto;
        margin-left: auto;
    }

    .rk-auth .rk-perks {
        display: none;
    }
}

@media (max-width: 640px) {
    .rk-auth {
        padding-bottom: 48px;
    }

    .rk-auth .rk-title {
        font-size: 24px !important;
    }

    .rk-lead {
        font-size: 13px;
    }

    .rk-card {
        padding: 26px 18px 22px;
        border-radius: 20px;
    }

    .rk-grid-2,
    .rk-grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .rk-span-2 {
        grid-column: auto;
    }

    .rk-row-between {
        flex-wrap: wrap;
    }

    .rk-optin {
        flex-direction: column;
        align-items: flex-start;
    }
}
