/* =========================================================
   RHMP CREATE OWNER ACCOUNT
========================================================= */

.rhmp-create-page,
.rhmp-create-page * {
    box-sizing: border-box;
}

.rhmp-create-page {
    --rhmp-green: #079447;
    --rhmp-green-light: #10ce5d;
    --rhmp-green-dark: #006d35;
    --rhmp-black: #07140d;
    --rhmp-text: #17221b;
    --rhmp-muted: #748079;
    --rhmp-border: #d8e1dc;

    position: fixed;
    inset: 0;
    z-index: 999999;

    width: 100%;
    min-height: 100vh;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 30px 20px;

    background-image: var(--rhmp-create-bg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    overflow-y: auto;
}


/* OPEN STATE */
.rhmp-create-page.rhmp-create-open {
    display: flex;
}


/* =========================================================
   BACKGROUND SHADE
========================================================= */

.rhmp-create-shade {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.01) 0%,
            rgba(0, 70, 30, 0.02) 35%,
            rgba(0, 110, 48, 0.04) 65%,
            rgba(0, 80, 35, 0.07) 100%
        );

    pointer-events: none;
}


/* =========================================================
   CREATE ACCOUNT CARD
========================================================= */

.rhmp-create-card {
    position: relative;
    z-index: 5;

    width: 100%;
    max-width: 610px;

    margin: auto;
    padding: 30px 40px 27px;

    background: rgba(255, 255, 255, 0.43);

    border:
        1.5px solid
        rgba(7, 148, 71, 0.78);

    border-radius: 36px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.90),
        0 0 0 1px rgba(255, 255, 255, 0.20),
        0 0 0 4px rgba(7, 148, 71, 0.025),
        0 30px 80px rgba(0, 55, 25, 0.20);

    backdrop-filter:
        blur(10px)
        saturate(125%);

    -webkit-backdrop-filter:
        blur(10px)
        saturate(125%);
}


/* GLASS SHINE */
.rhmp-create-card::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: -1;

    border-radius: inherit;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.24) 0%,
            rgba(255, 255, 255, 0.08) 38%,
            rgba(255, 255, 255, 0.02) 70%,
            rgba(255, 255, 255, 0.04) 100%
        );

    pointer-events: none;
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.rhmp-create-close {
    position: absolute;

    top: 19px;
    right: 20px;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0;

    border: 1px solid rgba(7, 148, 71, 0.20);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.40);

    color: #304238;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.rhmp-create-close:hover {
    background: rgba(255, 255, 255, 0.72);
    color: var(--rhmp-green);
    transform: rotate(4deg);
}

.rhmp-create-close svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   BRAND
========================================================= */

.rhmp-create-brand {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    margin: 0 0 14px;
    padding: 0;

    text-align: center;
}

.rhmp-create-logo {
    display: block;

    width: auto;
    max-width: 155px;
    max-height: 78px;

    margin: 0 auto 5px;
    padding: 0;

    object-fit: contain;
}

.rhmp-create-brand-tag {
    display: block;

    width: 100%;

    margin: 0;
    padding: 0;

    color: var(--rhmp-green);

    font-size: 8px;
    font-weight: 800;
    line-height: 1.2;

    letter-spacing: 2.8px;

    text-align: center;
}


/* =========================================================
   HEADER
========================================================= */

.rhmp-create-header {
    width: 100%;

    margin: 0 0 18px;
    padding: 0;

    text-align: center;
}

.rhmp-create-header h1 {
    margin: 0 0 7px !important;
    padding: 0 !important;

    color: var(--rhmp-black) !important;

    font-size: 32px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;

    letter-spacing: -1px;
}

.rhmp-create-header p {
    margin: 0 !important;
    padding: 0 !important;

    color: #5f6d65;

    font-size: 13px;
    line-height: 1.4;
}


/* =========================================================
   FORM
========================================================= */

.rhmp-create-form {
    width: 100%;

    margin: 0;
    padding: 0;
}


/* =========================================================
   FORM FIELD
========================================================= */

.rhmp-create-field {
    position: relative !important;

    width: 100% !important;
    height: 52px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    gap: 12px !important;

    margin: 0 0 9px !important;
    padding: 0 16px !important;

    background:
        rgba(255, 255, 255, 0.47) !important;

    border:
        1.5px solid
        rgba(170, 190, 179, 0.72) !important;

    border-radius: 14px !important;

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.78);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    overflow: hidden;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.rhmp-create-field:focus-within {
    background:
        rgba(255, 255, 255, 0.62) !important;

    border-color:
        var(--rhmp-green) !important;

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.90),
        0 0 0 4px
        rgba(7, 148, 71, 0.10);
}


/* =========================================================
   FIELD ICON
========================================================= */

.rhmp-create-field-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 22px !important;
    height: 22px !important;

    min-width: 22px !important;
    flex: 0 0 22px !important;

    margin: 0 !important;
    padding: 0 !important;

    color: var(--rhmp-green) !important;

    line-height: 0 !important;
}

.rhmp-create-field-icon svg {
    display: block !important;

    width: 21px !important;
    height: 21px !important;

    margin: 0 !important;
    padding: 0 !important;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   INPUT
========================================================= */

.rhmp-create-field input {
    position: static !important;

    display: block !important;
    flex: 1 1 auto !important;

    width: 100% !important;
    min-width: 0 !important;

    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    outline: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;

    box-shadow: none !important;

    color: var(--rhmp-text) !important;

    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 22px !important;

    appearance: none;
    -webkit-appearance: none;
}

.rhmp-create-field input::placeholder {
    color: #7c8982;
    opacity: 1;
}


/* =========================================================
   PASSWORD EYE
========================================================= */

.rhmp-create-eye {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 34px !important;
    height: 34px !important;

    min-width: 34px !important;
    flex: 0 0 34px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    outline: 0 !important;
    border-radius: 50% !important;

    background: transparent !important;

    color: #536159 !important;

    box-shadow: none !important;

    cursor: pointer;
}

.rhmp-create-eye svg {
    display: block;

    width: 20px;
    height: 20px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rhmp-create-eye-hide {
    display: none !important;
}

.rhmp-create-eye.is-visible
.rhmp-create-eye-show {
    display: none !important;
}

.rhmp-create-eye.is-visible
.rhmp-create-eye-hide {
    display: block !important;
}


/* =========================================================
   TERMS
========================================================= */

.rhmp-create-terms {
    position: relative;

    display: flex;
    align-items: center;

    gap: 9px;

    margin: 12px 2px 14px;

    color: #344139;

    font-size: 12px;
    line-height: 1.4;

    cursor: pointer;
}

.rhmp-create-terms input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;

    pointer-events: none;
}

.rhmp-create-checkmark {
    position: relative;

    width: 18px;
    height: 18px;

    min-width: 18px;

    border:
        1.5px solid
        rgba(100, 125, 111, 0.75);

    border-radius: 5px;

    background:
        rgba(255, 255, 255, 0.52);
}

.rhmp-create-terms input:checked
+ .rhmp-create-checkmark {
    background: var(--rhmp-green);
    border-color: var(--rhmp-green);
}

.rhmp-create-terms input:checked
+ .rhmp-create-checkmark::after {
    content: "";

    position: absolute;

    left: 5px;
    top: 2px;

    width: 5px;
    height: 9px;

    border: solid #fff;
    border-width: 0 2px 2px 0;

    transform: rotate(45deg);
}

.rhmp-create-terms strong {
    color: var(--rhmp-green);
    font-weight: 800;
}


/* =========================================================
   CREATE ACCOUNT BUTTON
========================================================= */

.rhmp-create-submit {
    width: 100% !important;
    height: 55px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 12px !important;

    margin: 0 !important;
    padding: 0 20px !important;

    border: 0 !important;
    border-radius: 15px !important;

    background:
        linear-gradient(
            135deg,
            #10d65f 0%,
            #09ac50 48%,
            #008c42 100%
        ) !important;

    color: #fff !important;

    font-family: inherit !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    line-height: 1 !important;

    cursor: pointer;

    box-shadow:
        0 13px 29px
        rgba(5, 165, 76, 0.28);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.rhmp-create-submit:hover {
    transform: translateY(-1px);

    box-shadow:
        0 16px 32px
        rgba(5, 165, 76, 0.32);
}

.rhmp-create-submit svg {
    width: 21px;
    height: 21px;

    fill: none;

    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   BACK TO LOGIN
========================================================= */

.rhmp-create-login-row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex-wrap: wrap;

    gap: 6px;

    margin: 17px 0 0;
    padding: 0;

    color: var(--rhmp-black);

    font-size: 13px;
    line-height: 1.4;

    text-align: center;
}

.rhmp-create-login-row button {
    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    outline: 0 !important;

    background: transparent !important;

    color: #ffffff !important;

    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 800 !important;

    line-height: inherit !important;

    box-shadow: none !important;

    cursor: pointer;
}


/* =========================================================
   BODY LOCK
========================================================= */

body.rhmp-create-account-active {
    overflow: hidden !important;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 800px) {

    .rhmp-create-page {
        padding: 24px 18px;
    }

    .rhmp-create-card {
        max-width: 610px;

        padding:
            27px
            30px
            24px;

        border-radius: 32px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .rhmp-create-page {
        width: 100%;

        height: 100vh;
        min-height: 100vh;

        height: 100svh;
        min-height: 100svh;

        align-items: center;
        justify-content: center;

        padding:
            max(6px, env(safe-area-inset-top))
            8px
            max(6px, env(safe-area-inset-bottom));

        background-image:
            var(--rhmp-create-bg);

        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;

        overflow-y: auto;
    }


    .rhmp-create-card {
        width: 100%;
        max-width: none;

        margin: auto;

        padding:
            14px
            15px
            13px;

        border:
            1.5px solid
            rgba(7, 148, 71, 0.80);

        border-radius: 25px;

        background:
            rgba(255, 255, 255, 0.44);

        box-shadow:
            inset 0 1px 0
            rgba(255, 255, 255, 0.90),

            0 0 0 1px
            rgba(255, 255, 255, 0.18),

            0 16px 40px
            rgba(0, 70, 31, 0.18);

        backdrop-filter:
            blur(10px)
            saturate(120%);

        -webkit-backdrop-filter:
            blur(10px)
            saturate(120%);
    }


    /* CLOSE */

    .rhmp-create-close {
        top: 10px;
        right: 11px;

        width: 32px;
        height: 32px;
    }

    .rhmp-create-close svg {
        width: 17px;
        height: 17px;
    }


    /* BRAND */

    .rhmp-create-brand {
        margin-bottom: 7px;
    }

    .rhmp-create-logo {
        max-width: 112px;
        max-height: 48px;

        margin-bottom: 2px;
    }

    .rhmp-create-brand-tag {
        font-size: 5.8px;
        letter-spacing: 2px;
    }


    /* HEADER */

    .rhmp-create-header {
        margin-bottom: 10px;
    }

    .rhmp-create-header h1 {
        margin-bottom: 4px !important;

        font-size: 24px !important;
        letter-spacing: -0.7px;
    }

    .rhmp-create-header p {
        font-size: 10px;
        line-height: 1.3;
    }


    /* FIELDS */

    .rhmp-create-field {
        height: 43px !important;

        gap: 10px !important;

        margin-bottom: 6px !important;

        padding:
            0
            12px !important;

        border-radius:
            11px !important;
    }

    .rhmp-create-field-icon {
        width: 19px !important;
        height: 19px !important;

        min-width: 19px !important;
        flex-basis: 19px !important;
    }

    .rhmp-create-field-icon svg {
        width: 18px !important;
        height: 18px !important;
    }

    .rhmp-create-field input {
        font-size: 12px !important;
        line-height: 20px !important;
    }


    /* EYE */

    .rhmp-create-eye {
        width: 29px !important;
        height: 29px !important;

        min-width: 29px !important;
        flex-basis: 29px !important;
    }

    .rhmp-create-eye svg {
        width: 18px;
        height: 18px;
    }


    /* TERMS */

    .rhmp-create-terms {
        gap: 7px;

        margin:
            8px
            1px
            9px;

        font-size: 9.5px;
    }

    .rhmp-create-checkmark {
        width: 16px;
        height: 16px;

        min-width: 16px;
    }

    .rhmp-create-terms input:checked
    + .rhmp-create-checkmark::after {
        left: 4px;
        top: 1px;
    }


    /* CREATE BUTTON */

    .rhmp-create-submit {
        height: 45px !important;

        border-radius:
            12px !important;

        font-size:
            14px !important;
    }

    .rhmp-create-submit svg {
        width: 18px;
        height: 18px;
    }


    /* LOGIN */

    .rhmp-create-login-row {
        margin-top: 9px;

        font-size: 10.5px;
    }

    .rhmp-create-login-row button {
        font-size:
            10.5px !important;
    }
}


/* =========================================================
   VERY SMALL / SHORT MOBILE
========================================================= */

@media (max-width: 370px),
       (max-width: 600px) and (max-height: 700px) {

    .rhmp-create-page {
        align-items: flex-start;

        padding:
            max(4px, env(safe-area-inset-top))
            5px
            max(4px, env(safe-area-inset-bottom));
    }

    .rhmp-create-card {
        margin: auto;

        padding:
            9px
            12px
            9px;

        border-radius: 22px;
    }

    .rhmp-create-close {
        top: 7px;
        right: 8px;

        width: 28px;
        height: 28px;
    }

    .rhmp-create-logo {
        max-width: 95px;
        max-height: 39px;
    }

    .rhmp-create-brand {
        margin-bottom: 4px;
    }

    .rhmp-create-brand-tag {
        font-size: 5px;
        letter-spacing: 1.6px;
    }

    .rhmp-create-header {
        margin-bottom: 7px;
    }

    .rhmp-create-header h1 {
        font-size: 20px !important;
    }

    .rhmp-create-header p {
        font-size: 8.5px;
    }

    .rhmp-create-field {
        height: 38px !important;

        margin-bottom:
            5px !important;
    }

    .rhmp-create-field input {
        font-size:
            11px !important;
    }

    .rhmp-create-terms {
        margin:
            6px
            1px
            7px;

        font-size: 8.5px;
    }

    .rhmp-create-submit {
        height: 40px !important;

        font-size:
            13px !important;
    }

    .rhmp-create-login-row {
        margin-top: 6px;

        font-size: 9px;
    }

    .rhmp-create-login-row button {
        font-size:
            9px !important;
    }
}

/* =========================================================
   v1.2.3 EMAIL-ONLY OWNER REGISTRATION OTP NOTICE
   Contact mobile/WhatsApp form fields remain unchanged.
========================================================= */
.rhmp-create-page .rhmp-create-email-hint {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: -1px 4px 10px;
    color: #176a43;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.45;
}
.rhmp-create-page .rhmp-create-email-hint svg {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
}
.rhmp-create-page .rhmp-create-otp-screen .rhmp-create-header {
    margin-bottom: 18px;
}
.rhmp-create-page .rhmp-otp-email-notice {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 18px;
    border: 1px solid rgba(7, 148, 71, .33);
    border-radius: 18px;
    background: linear-gradient(120deg, rgba(239,255,246,.94), rgba(255,255,255,.77));
    box-shadow: 0 9px 25px rgba(0,90,47,.075);
    text-align: left;
}
.rhmp-create-page .rhmp-otp-email-notice-icon {
    display: flex;
    flex: 0 0 51px;
    align-items: center;
    justify-content: center;
    width: 51px;
    height: 51px;
    border-radius: 15px;
    background: #e4fff0;
    color: #059753;
}
.rhmp-create-page .rhmp-otp-email-notice-icon svg {
    width: 29px;
    height: 29px;
}
.rhmp-create-page .rhmp-otp-email-notice-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 6px;
}
.rhmp-create-page .rhmp-otp-email-notice-label {
    color: #536e61;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}
.rhmp-create-page .rhmp-otp-email-address {
    color: #102d25;
    font-size: 17px;
    font-weight: 800;
    overflow-wrap: anywhere;
}
.rhmp-create-page .rhmp-otp-email-notice-status {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #078447;
    font-size: 12px;
    font-weight: 750;
}
.rhmp-create-page .rhmp-otp-email-status-dot {
    display: inline-block;
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #0dc866;
    box-shadow: 0 0 0 4px rgba(13,200,102,.11);
}
.rhmp-create-page .rhmp-otp-email-help {
    margin: 12px 2px 18px;
    color: #3a5448;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}
@media (max-width: 600px) {
    .rhmp-create-page .rhmp-create-email-hint {
        margin: -1px 3px 7px;
        font-size: 10px;
        gap: 6px;
    }
    .rhmp-create-page .rhmp-create-email-hint svg {
        flex-basis: 14px;
        width: 14px;
        height: 14px;
    }
    .rhmp-create-page .rhmp-create-otp-screen .rhmp-create-header {
        margin-bottom: 12px;
    }
    .rhmp-create-page .rhmp-otp-email-notice {
        padding: 13px;
        border-radius: 14px;
        gap: 11px;
    }
    .rhmp-create-page .rhmp-otp-email-notice-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }
    .rhmp-create-page .rhmp-otp-email-notice-icon svg {
        width: 25px;
        height: 25px;
    }
    .rhmp-create-page .rhmp-otp-email-address { font-size: 14px; }
    .rhmp-create-page .rhmp-otp-email-notice-status { font-size: 10px; }
    .rhmp-create-page .rhmp-otp-email-notice-label { font-size: 9px; }
    .rhmp-create-page .rhmp-otp-email-help {
        margin: 9px 2px 13px;
        font-size: 11px;
    }
}

/* Keep email OTP help actions readable on translucent login panels. */
.rhmp-create-page .rhmp-create-otp-screen .rhmp-create-login-row button {
    color: #047e46 !important;
    font-weight: 800 !important;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.rhmp-create-page .rhmp-create-otp-screen .rhmp-create-login-row button:hover,
.rhmp-create-page .rhmp-create-otp-screen .rhmp-create-login-row button:focus-visible {
    color: #015d34 !important;
}
