/* Cloudflare-style split auth — Dastoorr green */
html:has(body.ds-split-auth-page) {
    height: 100%;
    overflow: hidden;
    background: #fff;
}

.ds-split-auth {
    --ds-green: #177e3b;
    --ds-primary: #177e3b;
    --ds-secondary: #F8A840;
    --ds-green-deep: #146c33;
    --ds-green-dark: #0d4a24;
    --ds-green-light: #177e3b;
    --ds-green-pale: #e8f6ec;
    height: 100vh;
    overflow: hidden;
    background: #fff;
}

.ds-split-auth .ds-split-pane {
    width: 50%;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0;
    background: #fff;
    overflow-x: hidden;
    overflow-y: auto;
}

.ds-split-pane-inner {
    width: 100%;
    max-width: 340px;
    margin: auto;
}

.ds-split-auth .ds-split-pane-inner.wide {
    max-width: 400px;
}

.ds-auth-brand {
    position: absolute;
    top: 22px;
    left: 28px;
    display: flex;
    align-items: center;
    z-index: 3;
}

.ds-auth-brand img {
    height: 32px;
    width: auto;
}

.ds-split-hero {
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    height: 100vh;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(1200px 700px at 85% 8%, #1b8c43 0%, transparent 55%),
        radial-gradient(900px 600px at 12% 88%, #0d4a24 0%, transparent 58%),
        linear-gradient(145deg, #0d4a24 0%, #146c33 38%, #177e3b 72%, #177e3b 100%);
}

.ds-auth-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.ds-hero-haze {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(
            -18deg,
            transparent 0 10px,
            rgba(255, 255, 255, 0.035) 10px 11px
        );
    mix-blend-mode: overlay;
}

.ds-hero-top {
    position: absolute;
    top: 18px;
    right: 22px;
    z-index: 4;
}

.ds-hero-top-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
}

.ds-hero-top-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
}

.ds-split-hero-inner {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 48px 56px;
    max-width: 560px;
}

.ds-hero-kicker {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.88) !important;
}

.ds-split-hero-inner h2 {
    margin: 0 0 16px;
    font-size: 42px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff !important;
}

.ds-split-hero-inner p {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92) !important;
}

.ds-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    background: #fff;
    color: #177e3b !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.ds-hero-cta:hover {
    background: #f4fbf6;
    color: #146c33 !important;
}

.ds-split-auth .inner-login,
.ds-split-auth .login-container,
.ds-split-auth .container {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    max-width: none !important;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
}

.ds-split-auth .title-main {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: #1b1f23 !important;
    margin: 0 0 14px;
}

.ds-split-auth .body-text {
    text-align: center;
    color: #6b7280;
}

.ds-social-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.ds-social-btn {
    flex: 1;
    min-width: 0;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #d9d9d9 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #1b1f23 !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.ds-social-btn:hover {
    background: #fafafa !important;
    color: #1b1f23 !important;
}

.ds-social-btn img {
    width: 18px;
    height: 18px;
}

.ds-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 10px;
    color: #8b939e;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.ds-or::before,
.ds-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e6e8eb;
}

.ds-split-auth .input-wrapper label {
    display: none;
}

.ds-split-auth .input-wrapper.show-label label {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    color: #3d4450;
    margin-bottom: 4px !important;
}

.ds-split-auth .input-wrapper.mb-16,
.ds-split-auth .mb-16 {
    margin-bottom: 8px !important;
}

.ds-split-auth .mb-24 {
    margin-bottom: 10px !important;
}

.ds-split-auth .input-wrapper input,
.ds-split-auth .input-wrapper select {
    width: 100%;
    height: 40px;
    border: 1px solid #d9d9d9 !important;
    border-radius: 8px !important;
    background: #fff !important;
    padding: 0 12px !important;
    font-size: 14px;
    color: #1b1f23;
    box-shadow: none !important;
}

.ds-split-auth .input-wrapper input:focus,
.ds-split-auth .input-wrapper select:focus {
    border-color: #177e3b !important;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(23, 126, 59, 0.15) !important;
}

.ds-split-auth .input-wrapper input::placeholder {
    color: #9aa3b2;
}

.ds-split-auth .input-wrapper select {
    appearance: none;
}

.ds-split-auth .button-blue,
.ds-split-auth .auth-submit,
.ds-split-auth .auth-spinner {
    width: 100%;
    height: 40px;
    border: 0;
    border-radius: 8px !important;
    background: var(--ds-green) !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    box-shadow: none;
}

.ds-split-auth .button-blue:hover,
.ds-split-auth .auth-submit:hover {
    background: var(--ds-green-deep) !important;
}

.ds-split-auth .remeber-section {
    display: flex;
    justify-content: flex-start;
    margin: 2px 0 10px;
}

.ds-split-auth .remeber-section .left {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ds-split-auth .remeber-section input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--ds-green);
    flex-shrink: 0;
}

.ds-split-auth .remeber-section label {
    font-size: 13px;
    color: #3d4450;
    line-height: 1.35;
    margin: 0;
}

.ds-split-auth .forgot,
.ds-split-auth .dont-have-account a,
.ds-split-auth a.forgot,
.ds-auth-forgot a {
    color: #177e3b !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.ds-split-auth .dont-have-account a:hover,
.ds-auth-forgot a:hover {
    text-decoration: underline;
}

.ds-split-auth .dont-have-account,
.ds-auth-forgot {
    text-align: center;
    color: #5b6470;
    font-size: 13px;
    margin: 6px 0 0;
}

.ds-auth-forgot {
    margin-top: 4px;
}

.ds-auth-note {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 16px;
    line-height: 1.45;
}

.ds-auth-legal {
    margin: 12px 0 0;
    text-align: center;
    font-size: 12px;
    line-height: 1.45;
    color: #8b939e;
}

.ds-auth-legal a {
    color: #5b6470;
    text-decoration: underline;
}

.ds-cookie-prefs {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 12px 0 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e6e8eb;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.08);
    color: #1b1f23 !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.ds-cookie-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #177e3b;
    box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px #177e3b;
    position: relative;
}

.ds-cookie-dot::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 2px;
    width: 5px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.ds-split-auth .social-button {
    width: 100%;
    height: 40px;
    border-radius: 8px !important;
    border: 1px solid #d9d9d9 !important;
    background: #fff !important;
    color: #374151 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.ds-split-auth .field-error {
    display: none;
    padding: 2px 0 0;
    font-size: 12px;
    line-height: 1.3;
}

.ds-split-auth .field-error:not(:empty) {
    display: block;
}

.ds-split-auth .alert {
    border-radius: 8px;
}

.ds-split-auth .login-form-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.ds-split-auth .login-form-logo img {
    height: 40px;
    width: auto;
}

.ds-split-auth .signup-form-row {
    display: flex;
    gap: 8px;
}

.ds-split-auth .signup-form-row .input-wrapper {
    flex: 1;
    min-width: 0;
}

.ds-split-auth .input-wrapper .field-tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    color: var(--ds-green);
    cursor: help;
    line-height: 1;
    flex-shrink: 0;
}

.ds-split-auth .field-tip .fa-circle-info {
    font-size: 14px;
    color: var(--ds-green);
}

.ds-tip-box {
    position: fixed;
    z-index: 9999;
    display: block;
    width: max-content;
    max-width: 240px;
    height: auto;
    min-height: 0;
    padding: 8px 12px;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    font-family: Inter, sans-serif;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    border-radius: 10px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.ds-tip-box.is-on {
    opacity: 1;
    visibility: visible;
}

.ds-split-auth .input-wrapper.show-label label span.req {
    color: #e11d48;
    font-weight: 700;
    margin-left: 2px;
}

.ds-split-auth .ds-split-pane-steps {
    align-items: stretch;
}

.ds-split-auth .profile-complete-wide .ds-progress {
    margin: 0 8px 18px;
}

.ds-split-auth .profile-complete-wide .input-wrapper.mb-0 {
    margin-bottom: 0 !important;
}

.ds-split-auth .profile-complete-wide .profile-photo-row {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    gap: 10px;
}

.ds-split-auth .profile-complete-wide .profile-photo-row img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
}

.ds-split-auth .profile-complete-wide .profile-photo-row input[type="file"] {
    flex: 1;
    min-width: 0;
    padding: 8px 12px !important;
}

.ds-split-auth .profile-photo-row img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 16px;
    background: #e9edf5;
}

.ds-split-auth .input-wrapper input[type="file"] {
    height: auto;
    padding: 10px 16px !important;
    border-radius: 8px !important;
}

.ds-split-auth .input-wrapper input[readonly] {
    opacity: 0.85;
}

.ds-split-auth .password-field {
    position: relative;
    width: 100%;
}

.ds-split-auth .password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #9aa3b2;
}

.ds-progress {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 8px 12px 28px;
}

.ds-progress-line,
.ds-progress-fill {
    position: absolute;
    top: 15px;
    left: 16%;
    right: 16%;
    height: 3px;
    border-radius: 99px;
    pointer-events: none;
}

.ds-progress-line {
    background: #e6eee8;
}

.ds-progress-fill {
    right: auto;
    width: 0;
    background: var(--ds-green);
    transition: width 0.25s ease;
}

.ds-progress[data-current="1"] .ds-progress-fill { width: 0; }
.ds-progress[data-current="2"] .ds-progress-fill { width: 34%; }
.ds-progress[data-current="3"] .ds-progress-fill { width: 68%; }

.ds-progress-step {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.ds-progress-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #d7dde8;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ds-progress-name {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

.ds-progress-step.is-active .ds-progress-num,
.ds-progress-step.is-done .ds-progress-num {
    background: var(--ds-green);
    border-color: var(--ds-green);
    color: #fff;
}

.ds-progress-step.is-active .ds-progress-name,
.ds-progress-step.is-done .ds-progress-name {
    color: var(--ds-green);
}

.ds-progress-step.is-clickable a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
}

.ds-progress-step.is-clickable {
    cursor: pointer;
}

.ds-progress-step:not(.is-clickable) {
    cursor: default;
}

.ds-form-step {
    display: none;
}

.ds-form-step.is-on {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ds-step-actions {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
    margin-top: 8px;
}

.ds-step-actions .ds-step-back,
.ds-step-actions .ds-step-cancel,
.ds-step-actions .ds-step-main {
    flex: 1;
    min-width: 0;
    width: auto;
}

.ds-step-main .auth-submit,
.ds-step-main .auth-spinner {
    width: 100%;
}

.ds-split-auth .ds-step-back,
.ds-split-auth .ds-step-cancel {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin: 0;
}

.ds-split-auth .ds-step-back.is-disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: default;
}

body.ds-split-auth-page {
    margin: 0;
    height: 100vh;
    overflow: hidden;
    background: #fff !important;
}

body.ds-split-auth-page > div:not(.ds-tip-box) {
    height: 100vh;
    overflow: hidden;
    background: #fff;
}

@media (max-width: 900px) {
    html:has(body.ds-split-auth-page),
    body.ds-split-auth-page,
    body.ds-split-auth-page > div:not(.ds-tip-box) {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }
    /* ds-split-auth must NOT carry min-height: 100vh — on column-reverse that
       pushes surplus space to the visual top, creating a blank white gap above
       the hero panel on mobile. Height is determined by content + scrolling. */
    .ds-split-auth {
        height: auto;
        min-height: 0;
        overflow: visible;
        display: flex;
        flex-direction: column-reverse;
    }
    .ds-split-hero {
        position: relative;
        width: 100%;
        height: 200px;
        min-height: 200px;
    }
    .ds-split-hero-inner {
        padding: 28px 24px 24px;
        max-width: none;
        justify-content: flex-end;
    }
    .ds-split-hero-inner h2 {
        font-size: 26px;
        margin-bottom: 8px;
    }
    .ds-split-hero-inner p {
        font-size: 14px;
    }
    .ds-hero-cta {
        margin-top: 14px;
        height: 34px;
    }
    .ds-hero-top {
        top: 12px;
        right: 12px;
    }
    .ds-split-auth .ds-split-pane {
        width: 100%;
        height: auto;
        min-height: 0;
        overflow: visible;
    }
    .ds-split-pane-inner,
    .ds-split-auth .ds-split-pane-inner.wide {
        max-width: 400px;
        margin: 0 auto;
        padding: 0 20px 56px;
    }
    .ds-split-auth .signup-form-row {
        flex-direction: column;
        gap: 0;
    }
    .ds-cookie-prefs {
        left: 12px;
        bottom: 12px;
    }
}
