/* ==========================================================
   Moeen Auth Premium CSS
   Pages:
   - /login/
   - /signup/
   - /my-account/lost-password/
   - /my-account/
   ========================================================== */

/* ==========================================================
   01. Base Variables
========================================================== */

.moeen-membership-page {
    --auth-bg: rgba(7, 18, 27, 0.94);
    --auth-bg-2: rgba(10, 25, 36, 0.88);
    --auth-border: rgba(38, 214, 203, 0.22);
    --auth-border-strong: rgba(38, 214, 203, 0.44);
    --auth-teal: var(--teal, #26d6cb);
    --auth-teal-2: #4ee8df;
    --auth-gold: #f2c96b;
    --auth-red: #ff7373;
    --auth-text: var(--text, #ffffff);
    --auth-muted: var(--muted, rgba(236, 252, 252, 0.72));
    --auth-soft: rgba(236, 252, 252, 0.54);
    --auth-faint: rgba(236, 252, 252, 0.36);
    --auth-radius-xl: 28px;
    --auth-radius-lg: 20px;
    --auth-radius-md: 16px;
    --auth-shadow: 0 26px 72px rgba(0, 0, 0, 0.28);
    --auth-transition: 180ms ease;

    direction: rtl;
}

.moeen-membership-page,
.moeen-membership-page * {
    box-sizing: border-box;
}

.moeen-membership-page .page-hero__inner {
    text-align: center;
}

.moeen-auth-wrap {
    width: min(980px, 100%);
    margin-inline: auto;
}

/* ==========================================================
   02. Auth Card
========================================================== */

.moeen-auth-card {
    position: relative;
    overflow: hidden;
    width: min(520px, 100%);
    margin-inline: auto;
    padding: clamp(26px, 3vw, 36px) !important;

    border: 1px solid rgba(38, 214, 203, 0.24) !important;
    border-radius: var(--auth-radius-xl);

    background:
        radial-gradient(circle at 100% 0%, rgba(38, 214, 203, 0.13), transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(242, 201, 107, 0.07), transparent 34%),
        linear-gradient(180deg, rgba(10, 25, 36, 0.94), rgba(4, 10, 15, 0.98)) !important;

    box-shadow:
        var(--auth-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.moeen-auth-card::before {
    content: "";
    position: absolute;
    inset-inline-start: -70px;
    inset-block-start: -70px;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: rgba(38, 214, 203, 0.08);
    filter: blur(10px);
    pointer-events: none;
}

.moeen-auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.moeen-auth-logo img {
    max-width: 132px;
    height: auto;
}

.moeen-auth-card .kicker {
    display: inline-flex;
    margin-bottom: 12px;
}

.moeen-auth-card h2 {
    margin: 6px 0 8px !important;
    color: #ffffff;
    font-size: clamp(28px, 3vw, 38px) !important;
    line-height: 1.3;
    font-weight: 950;
    letter-spacing: -0.02em;
}

.moeen-auth-card p {
    margin: 0 0 24px !important;
    color: rgba(236, 252, 252, 0.70) !important;
    font-size: 14px !important;
    font-weight: 700;
    line-height: 1.9;
}

/* ==========================================================
   03. Forms
========================================================== */

.moeen-auth-card form,
.moeen-login-form,
.moeen-signup-form {
    display: grid;
    gap: 15px;
}

.moeen-auth-card label {
    display: grid;
    gap: 8px;
    margin: 0 !important;
    color: rgba(236, 252, 252, 0.88);
    font-size: 13.5px;
    font-weight: 900;
    line-height: 1.4;
}

.moeen-auth-card input.input,
.moeen-auth-card input[type="text"],
.moeen-auth-card input[type="email"],
.moeen-auth-card input[type="password"],
.moeen-auth-card input[type="tel"],
.moeen-membership-page .woocommerce input.input-text,
.moeen-membership-page .woocommerce input[type="text"],
.moeen-membership-page .woocommerce input[type="email"],
.moeen-membership-page .woocommerce input[type="password"],
.moeen-membership-page .woocommerce input[type="tel"],
.moeen-membership-page .lost_reset_password input.input-text {
    width: 100% !important;
    min-height: 52px !important;
    padding: 12px 15px !important;

    border: 1px solid rgba(38, 214, 203, 0.32) !important;
    border-radius: 17px !important;

    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.035)) !important;

    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;

    font-family: inherit !important;
    font-size: 14.5px !important;
    font-weight: 850 !important;

    outline: none !important;
    box-shadow: none !important;

    transition:
        border-color var(--auth-transition),
        background var(--auth-transition),
        box-shadow var(--auth-transition);
}

.moeen-auth-card input::placeholder,
.moeen-membership-page .woocommerce input::placeholder {
    color: rgba(236, 252, 252, 0.42);
}

.moeen-auth-card input:focus,
.moeen-membership-page .woocommerce input:focus,
.moeen-membership-page .lost_reset_password input.input-text:focus {
    border-color: rgba(38, 214, 203, 0.62) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.042)) !important;
    box-shadow: 0 0 0 4px rgba(38, 214, 203, 0.10) !important;
}

.moeen-auth-card input:-webkit-autofill,
.moeen-auth-card input:-webkit-autofill:hover,
.moeen-auth-card input:-webkit-autofill:focus,
.moeen-membership-page .woocommerce input:-webkit-autofill,
.moeen-membership-page .woocommerce input:-webkit-autofill:hover,
.moeen-membership-page .woocommerce input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: 0 0 0 1000px rgba(9, 23, 33, 0.98) inset !important;
    border-color: rgba(38, 214, 203, 0.42) !important;
    transition: background-color 9999s ease-in-out 0s;
}

/* ==========================================================
   04. Signup Layout
========================================================== */

.moeen-signup-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 14px !important;
}

.moeen-signup-form label:nth-of-type(3) {
    grid-column: 1 / -1;
}

.moeen-signup-form button {
    grid-column: 1 / -1;
    margin-top: 2px;
}

/* Honeypot */
.moeen-hp {
    position: absolute !important;
    right: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ==========================================================
   05. Password Toggle - Final Clean
========================================================== */

.moeen-password-wrap {
    position: relative !important;
    display: block !important;
    width: 100% !important;
}

.moeen-password-wrap input {
    padding-inline-end: 58px !important;
}

.moeen-password-toggle {
    position: absolute !important;
    inset-inline-end: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;

    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;

    display: inline-grid !important;
    place-items: center !important;

    border-radius: 13px !important;
    border: 1px solid rgba(38, 214, 203, 0.34) !important;
    background: rgba(38, 214, 203, 0.12) !important;

    color: #4ee8df !important;
    cursor: pointer !important;
    box-shadow: none !important;
    line-height: 1 !important;
    font-size: 0 !important;

    transition:
        background var(--auth-transition),
        border-color var(--auth-transition),
        color var(--auth-transition);
}

.moeen-password-toggle svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    pointer-events: none !important;
}

.moeen-password-toggle:hover {
    background: linear-gradient(135deg, #26d6cb, #4ee8df) !important;
    border-color: transparent !important;
    color: #021214 !important;
}

.moeen-password-toggle.is-visible {
    background: rgba(242, 201, 107, 0.14) !important;
    border-color: rgba(242, 201, 107, 0.42) !important;
    color: #f2c96b !important;
}

/* Prevent duplicate old buttons if any old markup remains */
.moeen-password-field > .moeen-password-toggle:not(:last-child),
.moeen-password-wrap > .moeen-password-toggle:not(:last-child) {
    display: none !important;
}

/* ==========================================================
   06. Remember Me
========================================================== */

.moeen-remember {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 9px !important;
    color: var(--auth-muted) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

.moeen-remember input {
    width: 17px !important;
    height: 17px !important;
    min-height: 17px !important;
    accent-color: var(--auth-teal);
}

/* ==========================================================
   07. Buttons
========================================================== */

.moeen-auth-card .button,
.moeen-auth-card .btn,
.moeen-auth-card button,
.moeen-membership-page .woocommerce .button {
    width: 100%;
    min-height: 52px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 18px;
    border: 0 !important;
    border-radius: 16px !important;

    background: linear-gradient(135deg, var(--auth-teal), var(--auth-teal-2)) !important;
    color: #021214 !important;

    font-family: inherit;
    font-size: 14.5px;
    font-weight: 950 !important;
    text-decoration: none !important;

    cursor: pointer;
    box-shadow: 0 16px 38px rgba(38, 214, 203, 0.12);

    transition:
        transform var(--auth-transition),
        filter var(--auth-transition),
        background var(--auth-transition),
        color var(--auth-transition);
}

.moeen-auth-card .button:hover,
.moeen-auth-card .btn:hover,
.moeen-auth-card button:hover,
.moeen-membership-page .woocommerce .button:hover {
    transform: translateY(-2px);
    filter: brightness(1.04) saturate(1.05);
}

/* Keep password toggle from inheriting full button style */
.moeen-auth-card .moeen-password-toggle {
    width: 38px !important;
    min-height: 38px !important;
    box-shadow: none !important;
}

/* ==========================================================
   08. Auth Links
========================================================== */

.moeen-auth-links {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;

    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(38, 214, 203, 0.12);
}

.moeen-auth-links a {
    color: var(--auth-teal-2);
    font-size: 13.5px !important;
    font-weight: 950;
    text-decoration: none;
    border-bottom: 1px dashed rgba(78, 232, 223, 0.45);

    transition:
        color var(--auth-transition),
        border-color var(--auth-transition);
}

.moeen-auth-links a:hover {
    color: var(--auth-gold);
    border-color: rgba(242, 201, 107, 0.55);
}

/* ==========================================================
   09. Notices
========================================================== */

.moeen-auth-notice,
.moeen-membership-page .woocommerce-message,
.moeen-membership-page .woocommerce-info,
.moeen-membership-page .woocommerce-error {
    margin: 0 0 16px;
    padding: 13px 15px;
    border-radius: 16px;
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.8;
}

.moeen-auth-notice.is-error,
.moeen-membership-page .woocommerce-error {
    border: 1px solid rgba(255, 115, 115, 0.28);
    background: rgba(255, 115, 115, 0.09);
    color: #ffb3b3;
}

.moeen-auth-notice.is-success,
.moeen-membership-page .woocommerce-message {
    border: 1px solid rgba(38, 214, 203, 0.25);
    background: rgba(38, 214, 203, 0.09);
    color: var(--auth-teal-2);
}

.moeen-membership-page .woocommerce-info {
    border: 1px solid rgba(242, 201, 107, 0.25);
    background: rgba(242, 201, 107, 0.08);
    color: rgba(236, 252, 252, 0.84);
}

/* ==========================================================
   10. Lost Password Page
========================================================== */

.moeen-membership-page .lost_reset_password {
    width: min(520px, 100%);
    margin-inline: auto !important;
    padding: clamp(24px, 3vw, 34px) !important;

    border: 1px solid rgba(38, 214, 203, 0.24) !important;
    border-radius: 28px !important;

    background:
        radial-gradient(circle at 100% 0%, rgba(38, 214, 203, 0.13), transparent 40%),
        linear-gradient(180deg, rgba(10, 25, 36, 0.94), rgba(4, 10, 15, 0.98)) !important;

    box-shadow: 0 26px 72px rgba(0, 0, 0, 0.28);
}

.moeen-membership-page .lost_reset_password p:first-child {
    margin: 0 0 22px !important;
    color: rgba(236, 252, 252, 0.74) !important;
    font-size: 14px !important;
    font-weight: 750 !important;
    line-height: 1.9 !important;
}

.moeen-membership-page .lost_reset_password .form-row {
    width: 100% !important;
    float: none !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
}

.moeen-membership-page .lost_reset_password label {
    display: block;
    margin-bottom: 8px;
    color: rgba(236, 252, 252, 0.88);
    font-size: 13.5px;
    font-weight: 900;
}

.moeen-membership-page .lost_reset_password button.button {
    width: 100% !important;
}

/* Remove big WooCommerce card around lost password if supported */
.moeen-membership-page .woocommerce:has(.lost_reset_password) {
    display: block !important;
    width: min(760px, 100%) !important;
    margin-inline: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Fallback */
.moeen-membership-page .woocommerce .lost_reset_password {
    display: grid;
    gap: 12px;
}

/* ==========================================================
   11. My Account Basic Layout
========================================================== */

.moeen-auth-card,
.moeen-membership-page .woocommerce {
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius-xl);
    background:
        radial-gradient(circle at 100% 0%, rgba(38, 214, 203, 0.10), transparent 38%),
        linear-gradient(180deg, rgba(11, 22, 30, 0.98), rgba(4, 10, 14, 0.95));
    box-shadow:
        var(--auth-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.moeen-membership-page .woocommerce {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
    padding: 30px;
}

.moeen-membership-page .woocommerce-MyAccount-navigation,
.moeen-membership-page .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
}

.moeen-membership-page .woocommerce-MyAccount-navigation ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.moeen-membership-page .woocommerce-MyAccount-navigation a {
    display: block;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--auth-text);
    font-weight: 900;
    text-decoration: none;
}

.moeen-membership-page .woocommerce-MyAccount-navigation .is-active a,
.moeen-membership-page .woocommerce-MyAccount-navigation a:hover {
    border-color: var(--auth-border-strong);
    background: rgba(38, 214, 203, 0.10);
    color: var(--auth-teal-2);
}

.moeen-membership-page .woocommerce-MyAccount-content {
    color: var(--auth-muted);
    line-height: 1.9;
}

.moeen-membership-page .woocommerce-MyAccount-content a,
.moeen-membership-page a {
    color: var(--auth-teal-2);
}

.moeen-membership-page table {
    border-color: rgba(38, 214, 203, 0.18) !important;
    color: var(--auth-text);
}

/* ==========================================================
   12. Responsive
========================================================== */

@media (max-width: 800px) {
    .moeen-auth-card,
    .moeen-membership-page .woocommerce {
        padding: 22px !important;
        border-radius: 22px;
    }

    .moeen-signup-form {
        grid-template-columns: 1fr !important;
    }

    .moeen-signup-form label:nth-of-type(3),
    .moeen-signup-form button {
        grid-column: auto;
    }

    .moeen-auth-links {
        display: grid;
        justify-content: stretch;
        text-align: center;
    }

    .moeen-membership-page .woocommerce {
        grid-template-columns: 1fr;
    }

    .moeen-password-wrap input {
        padding-inline-end: 56px !important;
    }
}

/* ==========================================================
   Moeen Lost Password Confirmation - Final WooCommerce Override
========================================================== */

.moeen-membership-page .moeen-auth-wrap.rev {
    width: min(520px, calc(100% - 32px)) !important;
    margin: 70px auto 110px !important;
}

.moeen-membership-page .moeen-auth-wrap.rev > .woocommerce,
.moeen-membership-page .moeen-auth-wrap.rev .woocommerce {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.moeen-lost-sent-final {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 30px 26px 26px;
    border: 1px solid rgba(38, 214, 203, 0.24);
    border-radius: 30px;
    background:
        radial-gradient(circle at 100% 0%, rgba(38, 214, 203, 0.16), transparent 42%),
        radial-gradient(circle at 0% 100%, rgba(242, 201, 107, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(10, 25, 36, 0.97), rgba(4, 10, 15, 0.98));
    box-shadow:
        0 28px 78px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    text-align: center;
    direction: rtl;
}

.moeen-lost-sent-final::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255,255,255,.055), transparent 34%),
        radial-gradient(circle at 50% 0%, rgba(38,214,203,.08), transparent 42%);
}

.moeen-lost-sent-final > * {
    position: relative;
    z-index: 1;
}

.moeen-lost-sent-final__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    border-radius: 21px;
    border: 1px solid rgba(242, 201, 107, 0.38);
    background: rgba(242, 201, 107, 0.12);
    color: #f2c96b;
    box-shadow: 0 16px 36px rgba(242, 201, 107, 0.08);
}

.moeen-lost-sent-final__icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.moeen-lost-sent-final__kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    margin-bottom: 12px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(38, 214, 203, 0.24);
    background: rgba(38, 214, 203, 0.08);
    color: #4ee8df;
    font-size: 12px;
    font-weight: 950;
}

.moeen-lost-sent-final h2 {
    margin: 0 0 10px !important;
    color: #ffffff !important;
    font-size: clamp(25px, 3vw, 34px) !important;
    line-height: 1.35 !important;
    font-weight: 950 !important;
    letter-spacing: -0.02em;
}

.moeen-lost-sent-final p {
    margin: 0 auto !important;
    max-width: 410px;
    color: rgba(236, 252, 252, 0.74) !important;
    font-size: 14.5px !important;
    font-weight: 750 !important;
    line-height: 1.95 !important;
}

.moeen-lost-sent-final small {
    display: block;
    margin: 9px auto 0;
    max-width: 390px;
    color: rgba(236, 252, 252, 0.56);
    font-size: 12.8px;
    font-weight: 700;
    line-height: 1.8;
}

.moeen-lost-sent-final__actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 22px;
}

.moeen-lost-sent-final__actions a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 15px;
    font-size: 13.5px;
    font-weight: 950;
    text-decoration: none !important;
    transition:
        transform .18s ease,
        border-color .18s ease,
        color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.moeen-lost-sent-final__actions .is-primary {
    border: 0;
    background: linear-gradient(135deg, #26d6cb, #4ee8df);
    color: #021214 !important;
    box-shadow: 0 12px 26px rgba(38, 214, 203, 0.14);
}

.moeen-lost-sent-final__actions .is-secondary {
    border: 1px solid rgba(38, 214, 203, 0.26);
    background: rgba(255, 255, 255, 0.035);
    color: #ecfcfc !important;
}

.moeen-lost-sent-final__actions a:hover {
    transform: translateY(-2px);
}

.moeen-lost-sent-final__actions .is-secondary:hover {
    color: #f2c96b !important;
    border-color: rgba(242, 201, 107, 0.45);
}

@media (max-width: 600px) {
    .moeen-membership-page .moeen-auth-wrap.rev {
        width: min(420px, calc(100% - 28px)) !important;
        margin: 54px auto 90px !important;
    }

    .moeen-lost-sent-final {
        padding: 26px 20px 22px;
        border-radius: 24px;
    }

    .moeen-lost-sent-final__actions {
        display: grid;
    }
}