/* =========================================================
   NEXT DIGI STORE - REGISTER PAGE
========================================================= */

.nds-register-page {
    margin: 0;
    background: #f7faff;
    color: #0f172a;
}

.nds-register-page *,
.nds-register-page *::before,
.nds-register-page *::after {
    box-sizing: border-box;
}

.register-main {
    position: relative;
    min-height: calc(100vh - 76px);
    padding: 52px 20px 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 15%, rgba(37, 99, 235, .09), transparent 25%),
        radial-gradient(circle at 92% 84%, rgba(14, 116, 144, .08), transparent 27%),
        linear-gradient(180deg, #f9fbff 0%, #f5f8fd 100%);
}

.register-main::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .4;
    background-image:
        linear-gradient(rgba(15,23,42,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15,23,42,.035) 1px, transparent 1px);
    background-size: 44px 44px;
}

.register-shell {
    position: relative;
    z-index: 1;
    width: min(1140px, 100%);
    min-height: 690px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr);
    overflow: hidden;
    border: 1px solid #dfe7f1;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(15,23,42,.10);
}

/* LEFT PANEL */
.register-brand-panel {
    position: relative;
    min-width: 0;
    padding: 58px 54px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 86% 14%, rgba(96,165,250,.22), transparent 32%),
        radial-gradient(circle at 8% 90%, rgba(59,130,246,.18), transparent 32%),
        linear-gradient(145deg, #0b1738 0%, #102457 58%, #173b87 100%);
}

.register-brand-panel::before {
    content: "";
    position: absolute;
    width: 330px;
    height: 330px;
    right: -125px;
    bottom: -135px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow:
        0 0 0 45px rgba(255,255,255,.025),
        0 0 0 90px rgba(255,255,255,.018);
}

.register-brand-content,
.register-preview {
    position: relative;
    z-index: 1;
}

.register-eyebrow,
.register-form-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 17px;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .15em;
}

.register-eyebrow {
    color: #8eb8ff;
}

.register-form-kicker {
    color: #2563eb;
}

.register-eyebrow::before,
.register-form-kicker::before {
    content: "";
    width: 27px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
}

.register-brand-content h1 {
    max-width: 570px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(38px, 4vw, 54px);
    line-height: 1.05;
    letter-spacing: -.04em;
    font-weight: 800;
}

.register-brand-copy {
    max-width: 580px;
    margin: 21px 0 0;
    color: #bdcbe3;
    font-size: 15px;
    line-height: 1.75;
}

.register-benefit-list {
    margin-top: 32px;
    display: grid;
    gap: 16px;
}

.register-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.register-benefit-icon {
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #9ec1ff;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.08);
}

.register-benefit-icon svg,
.register-input-icon svg,
.register-password-toggle svg,
.register-submit-btn svg,
.register-checkbox svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.register-benefit-icon svg {
    width: 17px;
    height: 17px;
}

.register-benefit-item strong {
    display: block;
    margin: 1px 0 4px;
    color: #f8fbff;
    font-size: 13px;
}

.register-benefit-item p {
    margin: 0;
    color: #9eacc5;
    font-size: 11px;
    line-height: 1.55;
}

/* PRODUCT PREVIEW */
.register-preview {
    width: 92%;
    margin: 42px auto 0;
}

.register-preview-window {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.055));
    box-shadow: 0 24px 52px rgba(0,0,0,.22);
}

.register-preview-topbar {
    min-height: 58px;
    padding: 13px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,.09);
    background: rgba(4,12,32,.16);
}

.register-preview-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.register-preview-logo {
    width: 31px;
    height: 31px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    font-size: 12px;
    font-weight: 900;
}

.register-preview-brand strong,
.register-preview-brand small {
    display: block;
}

.register-preview-brand strong {
    color: #f8fbff;
    font-size: 11px;
}

.register-preview-brand small {
    margin-top: 2px;
    color: #93a8c8;
    font-size: 8px;
}

.register-preview-status {
    padding: 6px 9px;
    border-radius: 999px;
    border: 1px solid rgba(134,239,172,.15);
    background: rgba(34,197,94,.10);
    color: #86efac;
    font-size: 8px;
    font-weight: 800;
}

.register-preview-body {
    padding: 15px;
}

.register-preview-card {
    min-width: 0;
    padding: 13px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    background: rgba(4,12,32,.16);
}

.register-preview-card-featured {
    position: relative;
    padding: 15px;
    background:
        linear-gradient(135deg, rgba(37,99,235,.30), rgba(4,12,32,.15));
}

.register-preview-card span,
.register-preview-card strong,
.register-preview-card p {
    display: block;
}

.register-preview-label {
    color: #93c5fd;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.register-preview-card strong {
    margin-top: 7px;
    color: #f8fbff;
    font-size: 11px;
}

.register-preview-card p {
    margin: 4px 0 0;
    color: #8ea2c2;
    font-size: 7px;
}

.register-preview-action {
    width: max-content;
    margin-top: 12px;
    padding: 6px 9px;
    border-radius: 7px;
    color: #dbeafe;
    background: rgba(255,255,255,.08);
    font-size: 7px;
    font-weight: 800;
}

.register-preview-grid {
    margin-top: 9px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.register-floating-chip {
    position: absolute;
    z-index: 3;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px;
    background: rgba(7,18,47,.91);
    color: #dbeafe;
    font-size: 8px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.register-floating-chip-top {
    top: -12px;
    right: -10px;
}

.register-floating-chip-bottom {
    left: -14px;
    bottom: 13px;
}

.register-chip-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-radius: 50%;
    background: #60a5fa;
}

.register-chip-check {
    display: inline-grid;
    place-items: center;
    width: 14px;
    height: 14px;
    margin-right: 4px;
    border-radius: 50%;
    color: #86efac;
    background: rgba(34,197,94,.16);
    font-size: 8px;
}

/* FORM */
.register-form-section {
    min-width: 0;
    padding: 48px 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.register-form-wrap {
    width: min(430px, 100%);
}

.register-form-heading {
    margin-bottom: 26px;
}

.register-form-heading h2 {
    margin: 0;
    color: #0b1636;
    font-size: 35px;
    line-height: 1.1;
    letter-spacing: -.035em;
    font-weight: 800;
}

.register-form-heading p {
    margin: 11px 0 0;
    color: #748196;
    font-size: 14px;
    line-height: 1.7;
}

.register-form {
    display: grid;
    gap: 18px;
}

.register-field {
    display: grid;
    gap: 8px;
}

.register-field label,
.register-label-row label {
    color: #273449;
    font-size: 12px;
    font-weight: 800;
}

.register-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.register-label-row > span {
    color: #94a3b8;
    font-size: 10px;
}

.register-input-wrap {
    height: 52px;
    display: flex;
    align-items: center;
    border: 1px solid #dce5f0;
    border-radius: 12px;
    background: #fbfdff;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.register-input-wrap:focus-within {
    border-color: #7ba5f9;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37,99,235,.08);
}

.register-input-wrap.has-error {
    border-color: #fca5a5;
    background: #fffafa;
}

.register-input-icon {
    width: 45px;
    flex: 0 0 45px;
    display: grid;
    place-items: center;
    color: #8a98ac;
}

.register-input-icon svg,
.register-password-toggle svg {
    width: 18px;
    height: 18px;
}

.register-input-wrap input {
    min-width: 0;
    flex: 1;
    height: 100%;
    padding: 0 12px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f172a;
    font: inherit;
    font-size: 13px;
}

.register-input-wrap input::placeholder {
    color: #a6b1c0;
}

.register-password-toggle {
    width: 46px;
    height: 100%;
    flex: 0 0 46px;
    border: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: #8190a5;
    background: transparent;
}

.register-password-toggle:hover {
    color: #2563eb;
}

.register-eye-closed {
    display: none;
}

.register-password-toggle.is-visible .register-eye-open {
    display: none;
}

.register-password-toggle.is-visible .register-eye-closed {
    display: block;
}

.register-field-error {
    color: #dc2626;
    font-size: 11px;
    font-weight: 650;
}

.register-strength {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-top: 2px;
}

.register-strength span {
    height: 3px;
    border-radius: 99px;
    background: #e8edf4;
    transition: background .2s ease;
}

.register-strength span.is-active {
    background: #2563eb;
}

/* TERMS */
.register-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.register-terms input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.register-checkbox {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 1px;
    border: 1px solid #ccd7e5;
    border-radius: 5px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: #ffffff;
}

.register-checkbox svg {
    width: 13px;
    height: 13px;
    opacity: 0;
    stroke-width: 2.5;
}

.register-terms input:checked + .register-checkbox {
    border-color: #2563eb;
    background: #2563eb;
}

.register-terms input:checked + .register-checkbox svg {
    opacity: 1;
}

.register-terms input:focus-visible + .register-checkbox {
    box-shadow: 0 0 0 4px rgba(37,99,235,.10);
}

.register-terms-copy {
    color: #7f8da1;
    font-size: 10.5px;
    line-height: 1.6;
}

.register-terms-copy a {
    color: #2563eb;
    font-weight: 750;
    text-decoration: none;
}

.register-terms-copy a:hover {
    text-decoration: underline;
}

.register-terms-error {
    display: none;
    margin-top: -9px;
    color: #dc2626;
    font-size: 10px;
    font-weight: 650;
}

.register-terms-error.is-visible {
    display: block;
}

/* BUTTONS */
.register-submit-btn {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    box-shadow: 0 12px 28px rgba(37,99,235,.20);
    transition: transform .18s ease, box-shadow .18s ease;
}

.register-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(37,99,235,.25);
}

.register-submit-btn svg {
    width: 17px;
    height: 17px;
    stroke-width: 2;
}

.register-divider {
    position: relative;
    margin: 24px 0 16px;
    text-align: center;
}

.register-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e8edf4;
}

.register-divider span {
    position: relative;
    z-index: 1;
    padding: 0 11px;
    color: #94a3b8;
    background: #ffffff;
    font-size: 10px;
    font-weight: 700;
}

.register-login-btn {
    width: 100%;
    min-height: 50px;
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    background: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.register-login-btn:hover {
    color: #2563eb;
    border-color: #b9ceee;
    background: #f8fbff;
}

/* RESPONSIVE */
@media (max-width: 980px) {
    .register-shell {
        grid-template-columns: 1fr;
        max-width: 700px;
    }

    .register-brand-panel {
        padding: 46px 42px;
    }

    .register-preview {
        width: 76%;
    }

    .register-form-section {
        padding: 48px 42px 54px;
    }
}

@media (max-width: 640px) {
    .register-main {
        min-height: auto;
        padding: 30px 14px 48px;
    }

    .register-shell {
        border-radius: 20px;
    }

    .register-brand-panel {
        padding: 34px 24px 32px;
    }

    .register-brand-content h1 {
        font-size: 36px;
    }

    .register-brand-copy {
        font-size: 14px;
    }

    .register-preview {
        display: none;
    }

    .register-form-section {
        padding: 38px 22px 42px;
    }

    .register-form-heading h2 {
        font-size: 31px;
    }
}

@media (max-width: 390px) {
    .register-brand-panel {
        padding-inline: 20px;
    }

    .register-form-section {
        padding-inline: 18px;
    }

    .register-brand-content h1 {
        font-size: 32px;
    }
}