/* ============================================================
   Apple-Style Registration / Signup Form
   Multi-step: Email → Password+Confirm → Verify Email
   Colors: #000 (black) · #F6F6F6 (light grey)
   ============================================================ */


/* ── Root vars ── */
.reg-wrap {
    --reg-black:   #000000;
    --reg-bg:      #fff;
    --reg-border:  #D0D0D0;
    --reg-muted:   #6B6B6B;
    --reg-radius:  12px;
    --reg-input-h: 53px;
}

/* ── Outer UR wrapper ── */
.user-registration.reg-wrap {
    max-width: 450px !important;
    margin: 60px auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.reg-custom-ui{
    width:450px;
}

/* ── Hide all UR native field rows ── */
.reg-wrap .ur-form-row,
.reg-wrap .ur-form-grid,
.reg-wrap .ur-field-item,
.reg-wrap .ur-button-container {
    display: none !important;
}

/* ── Card shell ── */
.reg-card {
    border-radius: 20px;
    padding: 24px;
}

/* ── Header ── */
.reg-header {
    text-align: center;
    margin-bottom: 24px;
    width:450px;
}

.reg-title {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--reg-black);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 10px;
}

.reg-subtitle {
    position: relative;
    width: 316.76px;
    margin: 0 auto !important;
    font-size: 14px;
    color: #000;
    line-height: 1.6;
    margin: 0;

}

.reg-subtitle a {
        font-size: 14px;
        color:#0066CC !important;
                width: 100px;
        right: -25px;
        bottom:1px;
        position: absolute;
    display:flex;
    gap: 4px;
    align-items: center;
    color: var(--reg-black);
    font-weight: 400;
    text-decoration: none;
    transition: opacity 0.15s;
}

.reg-subtitle a:hover { opacity: 0.65; }

/* ── Steps ── */
.reg-step { display: none; }
.reg-step.active { display: block; }

.reg-step.active .reg-email-review-group{
            border-bottom-left-radius: 0px !important; 
        border-bottom-right-radius: 0px !important;
        border-top-left-radius: var(--reg-radius);
        border-top-right-radius: var(--reg-radius);
        padding-block: 14px !important;
}

/* ── Field group (bordered box) ── */
.reg-field-group {
    border: 1px solid #6D6D6D;
    border-radius: var(--reg-radius);
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filed-group-password{
    border-top: 0px !important;
        border-bottom-left-radius: var(--reg-radius) !important;
        border-bottom-right-radius: var(--reg-radius) !important;
        border-top-left-radius: 0px !important;
        border-top-right-radius: 0px !important;
}

.reg-field-group:focus-within {
    border-color: #888;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

/* ── Input row ── */
.reg-input-row { position: relative; }
.reg-input-row + .reg-input-row { border-top: 1px solid #6D6D6D; }

/* ── Float label ── */
.reg-float-label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #6D6D6D; font-size:14px; font-weight: 300;
    color: var(--reg-muted);
    pointer-events: none;
    transition: top 0.18s ease, font-size 0.18s ease;
    z-index: 2;
    line-height: 1;
}

.reg-float-label.lifted {
    top: 9px;
    font-size: 11px;
    color: #999;
    transform: translateY(0);
}

/* ── Input ── */
.reg-input {
    width: 100%;
    height: var(--reg-input-h);
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    color: var(--reg-black);
    padding: 20px 44px 6px 16px;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.reg-input::placeholder { color: #6D6D6D; font-size:14px; font-weight: 300; }

/* ── Password show/hide toggle ── */
.reg-pw-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--reg-muted);
    display: flex;
    align-items: center;
    transition: color 0.2s;
    z-index: 3;
}

.reg-pw-toggle:hover { color: var(--reg-black); }
.reg-pw-toggle svg { display: block; }

/* ── Primary CTA button ── */
.reg-btn {
    width: 100%;
    height: 52px;
    margin-top: 24px;
    background: var(--reg-black);
    color: #fff;
    border: none;
    border-radius: var(--reg-radius);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background 0.2s, transform 0.12s, box-shadow 0.2s;
}

.reg-btn:hover {
    background: #222;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.reg-btn:active {
    transform: scale(0.985);
    background: #111;
}

/* ── Divider ── */
.reg-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 16px;
    color: var(--reg-muted);
    font-size: 12px;
    letter-spacing: 0.04em;
}

.reg-divider::before,
.reg-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--reg-border);
}

/* ── Google button (nextend_social_login) ── */
.reg-google-wrap {
    text-align: center;
}

.reg-google-wrap .nsl-container {
    display: flex !important;
    justify-content: center !important;
}

.reg-google-wrap .nsl-container-buttons {
    width: 100% !important;
}

.reg-google-wrap .nsl-button {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    height: 52px !important;
    padding: 0 20px !important;
    border: 1px solid var(--reg-border) !important;
    border-radius: var(--reg-radius) !important;
    background: var(--reg-bg) !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: var(--reg-black) !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s !important;
    box-shadow: none !important;
}

.reg-google-wrap .nsl-button:hover {
    background: #ececec !important;
    border-color: #aaa !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}

.reg-google-wrap .nsl-button-svg-container {
    display: flex !important;
    align-items: center !important;
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
}

/* ── Verify email box ── */
.reg-verify-box {
    text-align: center;
    background: var(--reg-bg);
    border-radius: 16px;
    padding: 48px;
    max-width: 580px;
    margin: 60px auto;
    box-shadow: 0 2px 24px rgba(0,0,0,0.06);
    display: none;
}

.reg-verify-box.active { display: block !important; }

.reg-verify-title {
    font-size: 32px;
    font-weight: 500;
    color: var(--reg-black);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.reg-verify-text {
    font-size: 16px;
    color: var(--reg-muted);
    line-height: 1.65;
    margin: 0 0 4px;
}

.reg-verify-email-display {
    font-size: 16px;
    font-weight: 500;
    color: var(--reg-black);
    text-decoration: underline;
    margin: 0 0 28px;
}

.reg-resend-btn {
    width: 100%;
    height: 48px;
    background: var(--reg-black);
    color: #fff;
    border: none;
    border-radius: var(--reg-radius);
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 14px;
}

.reg-resend-btn:hover { background: #222; }
.reg-resend-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.reg-change-email-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--reg-black);
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.15s;
}

.reg-change-email-link:hover { opacity: 0.6; }

/* ── Error message ── */
.reg-error-msg {
    font-size: 13px;
    color: #cc0000;
    margin-top: 10px;
        margin-bottom: 0px  !important;
    display: none;
    text-align: left;
}
.reg-error-msg.visible { display: block; }

/* ── Suppress UR native notices (handled by our UI) ── */
.reg-wrap .user-registration-error,
.reg-wrap .user-registration-message,
.reg-wrap .user-registration-info,
.reg-wrap #ur-submit-message-node {
    display: none !important;
}

/* ── Email display (editable, step 2) ── */
#reg-email-display {
    color: var(--reg-black);
    font-weight: 500;
    padding-right: 44px; /* room for edit btn */
}

/* ── Edit email button ── */
.reg-edit-email-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--reg-muted);
    display: flex;
    align-items: center;
    transition: color 0.2s;
    z-index: 3;
}
.reg-edit-email-btn:hover { color: var(--reg-black); }

/* ── Password strength checker ── */
.reg-pw-checker {
    margin-top: 12px;
    display: none; /* shown by JS when password field is focused/typed */
}

.reg-pw-checker.visible { display: block; }

.reg-pw-bar-wrap {
    height: 4px;
    background: var(--reg-border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.reg-pw-bar {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: width 0.3s ease, background-color 0.3s ease;
    background: #cc0000;
}

.reg-pw-bar[data-score="1"] { width: 25%; background: #cc0000; }
.reg-pw-bar[data-score="2"] { width: 50%; background: #e07b00; }
.reg-pw-bar[data-score="3"] { width: 75%; background: #e0b800; }
.reg-pw-bar[data-score="4"] { width: 100%; background: #22a05a; }

.reg-pw-rules {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reg-pw-rule {
    font-size: 12px;
    color: var(--reg-muted);
    padding-left: 18px;
    position: relative;
    line-height: 1.4;
    transition: color 0.2s;
}

.reg-pw-rule::before {
    content: '✕';
    position: absolute;
    left: 0;
    font-size: 11px;
    color: #cc0000;
    transition: color 0.2s, content 0.2s;
}

.reg-pw-rule.pass {
    color: #22a05a;
}

.reg-pw-rule.pass::before {
    content: '✓';
    color: #22a05a;
}

/* ── Responsive ── */

@media (max-width: 520px) {
    .user-registration.reg-wrap {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 16px !important;
    }
    .reg-card {
        padding: 32px 20px 28px;
        border-radius: 14px;
    }
    .reg-verify-box {
        margin: 16px;
        padding: 36px 20px 32px;
    }
.reg-header {
        width:100%;
}


#reg-custom-ui{
    width:100%;
}
}

@media (max-width: 360px) {
    .reg-card { padding: 24px 14px 22px; }

    .reg-subtitle{
        width:300px;
    }

    .reg-subtitle a{
            right: -32px;
    bottom: 0px;

    }
}

/* === Hide default browser password reveal eye === */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="password"]::-webkit-contacts-auto-fill-button,
input[type="password"]::-webkit-credentials-auto-fill-button {
	display: none !important;
}
