/* ==========================================================================
   Registration page - PR 2.0 design
   Loaded after bootstrap / login.css so it wins the cascade.
   ========================================================================== */

:root {
    --pr-page-bg: #eef0fa;
    --pr-card-bg: #ffffff;
    --pr-heading: #0b0d1f;
    --pr-label: #3a3e55;
    --pr-text: #6b6f85;
    --pr-input-bg: #f6f7fc;
    --pr-input-border: #e5e7f2;
    --pr-input-focus: #5a61d6;
    --pr-placeholder: #a4a8c2;
    --pr-primary: #4f55c9;
    --pr-primary-2: #6b7cf2;
    --pr-error: #d64545;
    --pr-panel-1: #0e1540;
    --pr-panel-2: #1a2468;
    --pr-panel-3: #4a2f9f;
    --pr-radius-card: 28px;
    --pr-radius-input: 10px;
}

html, body {
    height: auto;
    min-height: 100%;
}

body.pr-reg-body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--pr-text);
    background: var(--pr-page-bg);
    background-image:
        radial-gradient(circle at 0% 0%, #e3e6fb 0, transparent 40%),
        radial-gradient(circle at 100% 100%, #e8e3fa 0, transparent 40%);
    -webkit-font-smoothing: antialiased;
}

/* ---------- Page shell ---------- */
.pr-reg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    box-sizing: border-box;
}

.pr-reg h1, .pr-reg h2, .pr-reg h3, .pr-reg h4, .pr-reg h5, .pr-reg h6 {
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.pr-reg *,
.pr-reg *::before,
.pr-reg *::after {
    box-sizing: border-box;
}

.pr-reg-grid {
    width: 100%;
    max-width: 1240px;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
}

/* ---------- Left: form card ---------- */
.pr-reg-card {
    background: var(--pr-card-bg);
    border-radius: var(--pr-radius-card);
    padding: 32px 56px 36px;
    box-shadow: 0 10px 40px rgba(30, 36, 100, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pr-reg-logo {
    margin-bottom: 36px;
}

.pr-reg-logo img {
    height: 38px;
    width: auto;
    display: block;
}

.pr-reg-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--pr-heading);
    margin: 0 0 20px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.pr-reg-form .pr-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.pr-reg-form .pr-row--full {
    grid-template-columns: 1fr;
}

.pr-reg-form .pr-field {
    margin-bottom: 14px;
    min-width: 0;
}

.pr-reg-form .input-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--pr-label);
    margin: 0 0 7px;
    line-height: 1.3;
}

/* Inputs */
.pr-reg-form .form-control,
.pr-reg-form input[type="text"],
.pr-reg-form input[type="email"],
.pr-reg-form input[type="password"] {
    width: 100%;
    height: 44px !important;
    padding: 0 14px !important;
    font-family: inherit;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    color: var(--pr-heading);
    background: var(--pr-input-bg);
    border: 1px solid var(--pr-input-border);
    border-radius: var(--pr-radius-input);
    box-shadow: none;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.pr-reg-form .form-control::placeholder,
.pr-reg-form input::placeholder {
    color: var(--pr-placeholder);
    opacity: 1;
}

.pr-reg-form .form-control:focus,
.pr-reg-form input[type="text"]:focus,
.pr-reg-form input[type="email"]:focus,
.pr-reg-form input[type="password"]:focus {
    background: #fff;
    border-color: var(--pr-input-focus);
    box-shadow: 0 0 0 3px rgba(90, 97, 214, 0.15);
}

.pr-reg-form input[type="password"]::placeholder {
    letter-spacing: 2px;
}

/* Parsley states */
.pr-reg-form input.parsley-error,
.pr-reg-form select.parsley-error {
    color: var(--pr-heading);
    background: #fff7f7;
    border-color: #f0b4b4;
}

.pr-reg-form input.parsley-success,
.pr-reg-form select.parsley-success {
    color: var(--pr-heading);
    background: var(--pr-input-bg);
    border-color: var(--pr-input-border);
}

.pr-reg-form .parsley-errors-list {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    font-size: 11.5px;
    line-height: 1.35;
    color: var(--pr-error);
}

/* ---------- Selectize (Select Product) ---------- */
.pr-reg-form .control.has-icon {
    position: relative;
}

.pr-reg-form .form-icon {
    display: none;
}

.pr-reg-form .selectize-control {
    width: 100%;
}

.pr-reg-form .selectize-control .selectize-input {
    min-height: 44px;
    padding: 8px 14px;
    font-family: inherit;
    font-size: 14px;
    color: var(--pr-heading);
    background: var(--pr-input-bg) !important;
    border: 1px solid var(--pr-input-border) !important;
    border-radius: var(--pr-radius-input) !important;
    box-shadow: none !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    line-height: 1.4;
}

.pr-reg-form .selectize-control .selectize-input.focus {
    background: #fff !important;
    border-color: var(--pr-input-focus) !important;
    box-shadow: 0 0 0 3px rgba(90, 97, 214, 0.15) !important;
}

.pr-reg-form .selectize-control .selectize-input > input {
    font-size: 14px !important;
    color: var(--pr-heading) !important;
    height: auto !important;
    padding: 2px 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.pr-reg-form .selectize-control .selectize-input > input::placeholder {
    color: var(--pr-placeholder);
}

.pr-reg-form .selectize-control.multi .selectize-input > div {
    margin: 0 !important;
    padding: 2px 8px !important;
    font-size: 12.5px;
    color: var(--pr-primary) !important;
    background: #e9eafb !important;
    border: 0 !important;
    border-radius: 6px !important;
    background-image: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.pr-reg-form .selectize-control.multi .selectize-input > div.active {
    color: #fff !important;
    background: var(--pr-primary) !important;
}

.pr-reg-form .selectize-control.plugin-remove_button [data-value] .remove {
    border-left-color: rgba(79, 85, 201, .25) !important;
}

.pr-reg-form .selectize-dropdown {
    margin-top: 6px;
    font-family: inherit;
    font-size: 14px;
    color: var(--pr-heading);
    background: #fff;
    border: 1px solid var(--pr-input-border);
    border-radius: var(--pr-radius-input);
    box-shadow: 0 12px 30px rgba(20, 24, 80, 0.12);
    overflow: hidden;
    z-index: 20;
}

.pr-reg-form .selectize-dropdown .option {
    padding: 8px 14px;
}

.pr-reg-form .selectize-dropdown .active {
    color: var(--pr-primary);
    background: #f0f1fd;
}

.pr-reg-form .select.multiProduct select {
    width: 100%;
}

/* ---------- Terms checkbox ---------- */
.pr-reg-form .pr-terms {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 18px;
}

.pr-reg-form .pr-terms input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 18px;
    accent-color: var(--pr-primary);
    cursor: pointer;
}

.pr-reg-form .pr-terms label {
    margin: 0;
    font-size: 13px;
    color: var(--pr-label);
    cursor: pointer;
}

.pr-reg-form .pr-terms label a {
    color: var(--pr-label);
    text-decoration: none;
}

.pr-reg-form .pr-terms label a:hover {
    color: var(--pr-primary);
}

/* ---------- Captcha + submit row ---------- */
.pr-reg-form .pr-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 16px;
    align-items: start;
}

.pr-reg-form .pr-captcha-hint {
    display: none;
}

.pr-reg-form .pr-captcha {
    display: flex;
    align-items: center;
    height: 46px;
    background: var(--pr-input-bg);
    border: 1px solid var(--pr-input-border);
    border-radius: var(--pr-radius-input);
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.pr-reg-form .pr-captcha:focus-within {
    background: #fff;
    border-color: var(--pr-input-focus);
    box-shadow: 0 0 0 3px rgba(90, 97, 214, 0.15);
}

.pr-reg-form .captcha-button-cont {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 100%;
    padding: 0 0 0 10px;
    margin: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
}

.pr-reg-form .captcha-button-cont img {
    width: 16px !important;
    height: 16px;
    opacity: .75;
    transition: transform .4s ease;
}

.pr-reg-form .captcha-button-cont:hover img {
    transform: rotate(180deg);
    opacity: 1;
}

.pr-reg-form #captcha {
    flex: 0 0 auto;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    height: 28px;
    margin: 0 2px 0 6px;
    padding: 0 8px !important;
    background: #e9eafb !important;
    border: 0 !important;
    border-radius: 6px;
    user-select: none;
}

.pr-reg-form #captcha #code {
    font-family: 'Courier New', monospace !important;
    font-size: 14px !important;
    font-weight: 700;
    letter-spacing: 1px;
    color: transparent !important;
    text-shadow: 0 0 0 var(--pr-primary) !important;
    font-style: italic;
    white-space: nowrap;
}

.pr-reg-form #txtCaptchaCode {
    flex: 1 1 auto;
    min-width: 0;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 12px 0 6px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.pr-reg-form .pr-captcha-wrap .parsley-errors-list {
    margin-top: 4px;
}

/* Submit button (keeps existing .fxt-btn-fill / .disabledbtn hooks) */
.pr-reg-form #btnRegistration,
.pr-reg-form .fxt-btn-fill {
    width: 100%;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 20px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, var(--pr-primary) 0%, var(--pr-primary-2) 100%) !important;
    border: 0;
    border-radius: var(--pr-radius-input);
    box-shadow: 0 8px 20px rgba(79, 85, 201, 0.35);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease, filter .2s ease;
}

.pr-reg-form #btnRegistration::after {
    content: "\2192";
    font-size: 16px;
    line-height: 1;
}

.pr-reg-form #btnRegistration:hover {
    filter: brightness(1.06);
    box-shadow: 0 10px 24px rgba(79, 85, 201, 0.45);
    transform: translateY(-1px);
}

.pr-reg-form #btnRegistration.disabledbtn {
    pointer-events: none;
    opacity: .55;
    box-shadow: none;
    transform: none;
}

/* Footer link */
.pr-reg-card .fxt-footer {
    margin-top: 14px;
}

.pr-reg-card .fxt-footer p {
    margin: 0;
    font-size: 14px;
    color: var(--pr-text);
}

.pr-reg-card .fxt-footer a {
    margin-left: 4px;
    font-weight: 600;
    color: var(--pr-primary);
    text-decoration: none;
}

.pr-reg-card .fxt-footer a:hover {
    text-decoration: underline;
}

#spnRespondMessage:empty {
    display: none;
}

/* ---------- Right: hero panel ---------- */
.pr-reg-panel {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    padding: 28px 48px 44px;
    color: #fff;
    background: linear-gradient(150deg, var(--pr-panel-1) 0%, var(--pr-panel-2) 38%, var(--pr-panel-3) 78%, #4b30a2 100%);
    display: flex;
    flex-direction: column;
    isolation: isolate;
}

/* Hero image (stretches over panel); gradient above is the fallback */
.pr-reg-panel #particles-js {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.pr-reg-panel #particles-js img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pr-reg-panel .fxt-bg-img,
.pr-reg-panel .fxt-header {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pr-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    margin-bottom: 48px;
    line-height: 1.2;
}

.pr-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
}

.pr-reg-panel h1 {
    margin: 0 0 24px;
    font-weight: 800;
    color: #fff;
}

.pr-reg-panel h1 .text-5 {
    display: block;
    font-size: 12px !important;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #b9bff5;
    margin-bottom: 10px;
}

.pr-reg-panel h1 br {
    display: none;
}

.pr-reg-panel h1 .text-8 {
    display: block;
    font-size: 46px !important;
    line-height: 1.08;
    letter-spacing: -0.02em;
    max-width: 380px;
}

.pr-reg-panel .pr-lead {
    margin: 0 0 28px;
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    text-align: left !important;
    max-width: 420px;
}

.pr-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    margin-bottom: 28px;
}

.pr-stat strong {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.pr-stat span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.pr-contacts {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.pr-reg-panel .icon-box {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left !important;
}

.pr-reg-panel .icon-box-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.pr-reg-panel .icon-box-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.pr-reg-panel .icon-box-icon i {
    font-size: 18px;
    line-height: 1;
}

.pr-reg-panel .icon-box-info {
    min-width: 0;
}

.pr-reg-panel .icon-box-info span {
    display: block;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.7) !important;
    line-height: 1.3;
}

.pr-reg-panel .icon-box-info h4 {
    margin: 2px 0 0;
    font-size: 16px !important;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    word-break: break-word;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .pr-reg-card {
        padding: 32px 36px;
    }

    .pr-reg-panel {
        padding: 28px 36px 40px;
    }

    .pr-reg-panel h1 .text-8 {
        font-size: 40px !important;
    }
}

@media (max-width: 991px) {
    .pr-reg {
        align-items: flex-start;
        padding: 24px 20px;
    }

    .pr-reg-grid {
        grid-template-columns: 1fr;
        max-width: 720px;
        gap: 20px;
    }

    .pr-badge {
        margin-bottom: 32px;
    }

    .pr-reg-panel h1 .text-8 {
        max-width: none;
    }

    .pr-reg-panel h1 br {
        display: none;
    }

    .pr-reg-panel .pr-lead {
        max-width: none;
    }

    .pr-contacts {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px 40px;
    }
}

@media (max-width: 575px) {
    .pr-reg {
        padding: 16px;
    }

    .pr-reg-card {
        padding: 24px 20px 28px;
        border-radius: 20px;
    }

    .pr-reg-logo {
        margin-bottom: 24px;
    }

    .pr-reg-logo img {
        height: 32px;
    }

    .pr-reg-title {
        font-size: 26px;
    }

    .pr-reg-form .pr-row,
    .pr-reg-form .pr-actions {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .pr-reg-form .pr-actions {
        gap: 12px;
    }

    .pr-reg-panel {
        padding: 24px 20px 28px;
        border-radius: 20px;
    }

    .pr-badge {
        margin-bottom: 24px;
    }

    .pr-reg-panel h1 .text-8 {
        font-size: 32px !important;
    }

    .pr-stats {
        gap: 10px;
        padding: 18px 0;
    }

    .pr-stat strong {
        font-size: 20px;
    }

    .pr-stat span {
        font-size: 11px;
    }

    .pr-contacts {
        flex-direction: column;
        gap: 16px;
    }
}

/* ---------- Fit in one screen on desktop (no page scroll) ----------
   Spacing scales with viewport height so short laptop screens fit too. */
@media (min-width: 992px) {
    .pr-reg {
        padding-top: clamp(12px, 3vh, 32px);
        padding-bottom: clamp(12px, 3vh, 32px);
    }

    .pr-reg-card {
        padding-top: clamp(20px, 4vh, 32px);
        padding-bottom: clamp(20px, 4vh, 36px);
    }

    .pr-reg-logo {
        margin-bottom: clamp(14px, 4.5vh, 36px);
    }

    .pr-reg-logo img {
        height: clamp(30px, 5vh, 38px);
    }

    .pr-reg-title {
        font-size: clamp(24px, 4vh, 32px);
        margin-bottom: clamp(10px, 2.4vh, 20px);
    }

    .pr-reg-form .pr-field {
        margin-bottom: clamp(8px, 1.6vh, 14px);
    }

    .pr-reg-form .input-label {
        margin-bottom: clamp(4px, 0.9vh, 7px);
    }

    .pr-reg-form .form-control,
    .pr-reg-form input[type="text"],
    .pr-reg-form input[type="email"],
    .pr-reg-form input[type="password"] {
        height: clamp(38px, 5.8vh, 44px) !important;
    }

    .pr-reg-form .selectize-control .selectize-input {
        min-height: clamp(38px, 5.8vh, 44px);
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .pr-reg-form .pr-terms {
        margin-bottom: clamp(10px, 2.2vh, 18px);
    }

    .pr-reg-form .pr-captcha,
    .pr-reg-form #btnRegistration {
        height: clamp(40px, 6vh, 46px) !important;
    }

    .pr-reg-card .fxt-footer {
        margin-top: clamp(8px, 1.8vh, 14px);
    }

    .pr-reg-panel {
        padding-top: clamp(20px, 4vh, 28px);
        padding-bottom: clamp(20px, 5vh, 44px);
    }

    .pr-badge {
        margin-bottom: clamp(16px, 5vh, 48px);
    }

    .pr-reg-panel h1 {
        margin-bottom: clamp(12px, 3vh, 24px);
    }

    .pr-reg-panel h1 .text-8 {
        font-size: clamp(30px, 6vh, 46px) !important;
    }

    .pr-reg-panel .pr-lead {
        margin-bottom: clamp(14px, 3vh, 28px);
    }

    .pr-stats {
        padding-top: clamp(14px, 3vh, 24px);
        padding-bottom: clamp(14px, 3vh, 24px);
        margin-bottom: clamp(14px, 3vh, 28px);
    }

    .pr-contacts {
        gap: clamp(12px, 2.8vh, 22px);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .pr-reg-panel h1 .text-8 {
        font-size: clamp(30px, 6vh, 40px) !important;
    }
}
