/*
 * MRG Auth Core — frontend form styles. See SPEC §12.
 */

.mrga-form {
    max-width: 440px;
    margin: 0 auto;
    font-family: inherit;
    color: inherit;
}

.mrga-form .mrga-field {
    margin: 0 0 14px;
    display: flex;
    flex-direction: column;
}

.mrga-form .mrga-field > label {
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 4px;
}

.mrga-form input[type="text"],
.mrga-form input[type="email"],
.mrga-form input[type="tel"],
.mrga-form input[type="password"],
.mrga-form select,
.mrga-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    font: inherit;
    font-size: 16px;
    line-height: 1.4;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #111;
}

.mrga-form textarea {
    min-height: 90px;
    resize: vertical;
}

.mrga-form input:focus,
.mrga-form select:focus,
.mrga-form textarea:focus {
    outline: 2px solid #2563eb;
    outline-offset: 1px;
    border-color: #2563eb;
}

.mrga-form input[aria-invalid="true"] {
    border-color: #dc2626;
    outline-color: #dc2626;
}

.mrga-form .mrga-submit {
    display: inline-block;
    padding: 10px 18px;
    font: inherit;
    font-weight: 600;
    color: #fff;
    background: #2563eb;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.mrga-form .mrga-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mrga-form .mrga-submit:focus-visible {
    background: #1d4ed8;
    outline: 3px solid rgba(37, 99, 235, 0.18);
    outline-offset: 2px;
}

.mrga-form .mrga-hint {
    display: block;
    font-size: 12px;
    min-height: 16px;
    margin-top: 4px;
    color: #475569;
}

.mrga-form .mrga-hint.is-error {
    color: #dc2626;
}

.mrga-form .mrga-hint.is-success {
    color: #15803d;
}

.mrga-form .mrga-notice {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

.mrga-form .mrga-notice.is-visible {
    display: block;
}

.mrga-form .mrga-notice--error,
.mrga-form .mrga-notice.is-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    display: block;
}

.mrga-form .mrga-notice--info,
.mrga-form .mrga-notice.is-info {
    background: #e0f2fe;
    color: #075985;
    border: 1px solid #bae6fd;
    display: block;
}

.mrga-form .mrga-notice.is-success {
    background: #dcfce7;
    color: #14532d;
    border: 1px solid #bbf7d0;
    display: block;
}

.mrga-form .mrga-notice__title {
    margin: 0 0 4px;
    font-size: 16px;
}

.mrga-form .mrga-strength-meter {
    margin-top: 6px;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    overflow: hidden;
    position: relative;
}

.mrga-form .mrga-strength-meter::after {
    content: "";
    display: block;
    height: 100%;
    width: var(--mrga-strength, 0%);
    background: var(--mrga-strength-color, #f87171);
    transition: width 180ms ease, background 180ms ease;
}

.mrga-form .mrga-forgot-link,
.mrga-form .mrga-register-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
}

.mrga-form .mrga-forgot-link + .mrga-register-link {
    margin-left: 12px;
}

/* Honeypot — backup to inline style in case CSS loads before markup. */
.mrga-form input[name="mrga_hp"] {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Social Login Buttons */

.mrga-social {
    margin: 18px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mrga-social__divider {
    position: relative;
    text-align: center;
    margin: 4px 0 6px;
    height: 1px;
    background: #e2e8f0;
}

.mrga-social__divider span {
    position: relative;
    top: -10px;
    background: #fff;
    padding: 0 10px;
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mrga-social__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow 120ms ease, background 120ms ease, border-color 120ms ease;
}

.mrga-social__btn:focus-visible {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    outline: 2px solid #2563eb;
    outline-offset: 1px;
    text-decoration: none;
}

.mrga-social__icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex: 0 0 18px;
}

.mrga-social__label {
    display: inline-block;
}

.mrga-social__btn--google {
    background: #fff;
    color: #1f2937;
    border-color: #cbd5e1;
}

.mrga-social__btn--google:focus-visible {
    background: #f8fafc;
}

.mrga-social__btn--google .mrga-social__icon {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'><path fill='%234285F4' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/><path fill='%2334A853' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/><path fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/><path fill='%23EA4335' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/></svg>");
}

.mrga-social__btn--facebook {
    background: #1877F2;
    color: #fff;
    border-color: #1877F2;
}

.mrga-social__btn--facebook:focus-visible {
    background: #166fe0;
    border-color: #166fe0;
    color: #fff;
}

@media (hover: hover) and (pointer: fine) {
    .mrga-form .mrga-submit:hover:not(:disabled) {
        background: #1d4ed8;
    }

    .mrga-social__btn:hover {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
        text-decoration: none;
    }

    .mrga-social__btn--google:hover {
        background: #f8fafc;
    }

    .mrga-social__btn--facebook:hover {
        background: #166fe0;
        border-color: #166fe0;
        color: #fff;
    }
}

/* Password reset pages */

body.mrga-forgot-page-body,
body.mrga-reset-page-body {
    display: flex;
    height: 100svh;
    min-height: 100svh;
    flex-direction: column;
    overflow: hidden;
    background: #f7f8fc;
}

body.admin-bar.mrga-forgot-page-body,
body.admin-bar.mrga-reset-page-body {
    height: calc(100svh - 32px);
    min-height: calc(100svh - 32px);
}

.mrga-forgot-page,
.mrga-reset-page {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    padding: 0;
    background: #f7f8fc;
}

.mrga-password-reset.mrga-form {
    --mrga-reset-primary: var(--mrg-color-primary, #7c3aed);
    --mrga-reset-primary-hover: var(--mrg-color-primary-hover, #6d28d9);
    --mrga-reset-ink: #171826;
    --mrga-reset-muted: #657085;
    --mrga-reset-line: #d8deea;
    --mrga-reset-card: #fffffd;
    --mrga-reset-soft: #f7f8fc;
    --mrga-reset-panel: #20113f;
    --mrga-reset-focus: rgba(124, 58, 237, 0.2);
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 4vh, 38px) clamp(24px, 5vw, 56px);
    overflow: hidden;
    color: var(--mrga-reset-ink);
    background:
        linear-gradient(115deg, rgba(124, 58, 237, 0.09), rgba(14, 165, 233, 0.06) 44%, rgba(250, 204, 21, 0.08)),
        var(--mrga-reset-soft);
}

.mrga-password-reset,
.mrga-password-reset * {
    box-sizing: border-box;
}

.mrga-password-reset__stage {
    display: grid;
    width: min(1120px, 100%);
    max-height: 100%;
    min-height: 0;
    grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1fr);
    overflow: hidden;
    border: 1px solid rgba(216, 222, 234, 0.96);
    border-radius: 8px;
    background: var(--mrga-reset-card);
    box-shadow: 0 22px 60px rgba(60, 44, 98, 0.16), 0 4px 18px rgba(12, 18, 32, 0.06);
}

.mrga-password-reset__brand,
.mrga-password-reset__panel {
    min-width: 0;
    min-height: 0;
}

.mrga-password-reset__brand {
    position: relative;
    display: grid;
    align-content: space-between;
    gap: 28px;
    padding: clamp(28px, 5vw, 48px);
    overflow: hidden;
    color: #fbfbff;
    background:
        linear-gradient(145deg, rgba(242, 184, 75, 0.18), rgba(242, 184, 75, 0) 28%),
        linear-gradient(155deg, var(--mrga-reset-primary) 0%, var(--mrga-reset-primary-hover) 52%, var(--mrga-reset-panel) 100%);
}

.mrga-password-reset__brand::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 253, 0.12);
    border-radius: 8px;
    pointer-events: none;
}

.mrga-password-reset__brand-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
}

.mrga-password-reset__mark {
    display: flex;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 253, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 253, 0.13);
    box-shadow: 0 14px 34px rgba(16, 9, 34, 0.24);
}

.mrga-password-reset__mark img {
    width: 44px;
    height: 44px;
}

.mrga-password-reset__mark span {
    color: #fbfbff;
    font-family: var(--mrg-font-heading, inherit);
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
}

.mrga-password-reset__brand-lockup {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.mrga-password-reset__brand-lockup span {
    color: #fbfbff;
    font-family: var(--mrg-font-heading, inherit);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.15;
}

.mrga-password-reset__brand-lockup strong {
    color: rgba(255, 255, 253, 0.72);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.mrga-password-reset__brand-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    max-width: 430px;
}

.mrga-password-reset__brand-copy h1 {
    margin: 0;
    color: #fbfbff;
    font-family: var(--mrg-font-heading, inherit);
    font-size: clamp(34px, 4.6vw, 54px);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: 0;
}

.mrga-password-reset__brand-copy p {
    max-width: 360px;
    margin: 0;
    color: rgba(255, 255, 253, 0.76);
    font-size: 15px;
    line-height: 1.6;
}

.mrga-password-reset__visual {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(100%, 330px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.mrga-password-reset__tile {
    display: flex;
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 253, 0.18);
    border-radius: 8px;
    color: #171826;
    font-family: var(--mrg-font-heading, inherit);
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 900;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 253, 0.72), 0 14px 26px rgba(16, 9, 34, 0.16);
}

.mrga-password-reset__tile--primary {
    background: #ede9fe;
}

.mrga-password-reset__tile--sun {
    background: #fef3c7;
}

.mrga-password-reset__tile--mint {
    background: #dcfce7;
}

.mrga-password-reset__tile--sky {
    background: #e0f2fe;
}

.mrga-password-reset__panel {
    display: grid;
    align-content: center;
    padding: clamp(30px, 5vw, 54px);
    background:
        linear-gradient(180deg, rgba(255, 255, 253, 0.98), rgba(248, 250, 255, 0.98)),
        var(--mrga-reset-card);
}

.mrga-password-reset__header {
    display: grid;
    gap: 8px;
}

.mrga-password-reset__header h2 {
    margin: 0;
    color: var(--mrga-reset-ink);
    font-family: var(--mrg-font-heading, inherit);
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0;
}

.mrga-password-reset__header p {
    max-width: 440px;
    margin: 0;
    color: var(--mrga-reset-muted);
    font-size: 15px;
    line-height: 1.55;
}

.mrga-password-reset__form {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.mrga-password-reset__form--confirm {
    gap: 12px;
    margin-top: 20px;
}

.mrga-password-reset__form--empty {
    gap: 16px;
}

.mrga-password-reset .mrga-password-reset__field {
    margin: 0;
    gap: 8px;
}

.mrga-password-reset .mrga-password-reset__field > label {
    margin: 0;
    color: #263044;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.mrga-password-reset__input {
    position: relative;
    display: flex;
    align-items: center;
}

.mrga-password-reset__input-icon {
    position: absolute;
    left: 16px;
    z-index: 1;
    display: flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    color: var(--mrga-reset-primary);
    pointer-events: none;
}

.mrga-password-reset__input-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.mrga-password-reset.mrga-form input[type="email"],
.mrga-password-reset.mrga-form input[type="password"] {
    min-height: 54px;
    padding: 14px 16px 14px 50px;
    border: 1px solid var(--mrga-reset-line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--mrga-reset-ink);
    box-shadow: 0 12px 26px rgba(29, 19, 67, 0.07);
    font-size: 16px;
    line-height: 1.35;
}

.mrga-password-reset.mrga-form input[type="email"]::placeholder,
.mrga-password-reset.mrga-form input[type="password"]::placeholder {
    color: #8a94a8;
}

.mrga-password-reset.mrga-form input[type="email"]:focus-visible,
.mrga-password-reset.mrga-form input[type="password"]:focus-visible {
    border-color: var(--mrga-reset-primary);
    outline: 3px solid var(--mrga-reset-focus);
    outline-offset: 1px;
}

.mrga-password-reset .mrga-password-reset__strength {
    height: 7px;
    margin-top: 2px;
    border-radius: 999px;
    background: #e9edf5;
}

.mrga-reset-form.is-complete .mrga-password-reset__field,
.mrga-reset-form.is-complete .mrga-password-reset__submit {
    display: none;
}

.mrga-password-reset__submit.mrga-submit {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    border: 0;
    border-radius: 8px;
    color: #fbfbff;
    background: var(--mrga-reset-primary);
    box-shadow: 0 14px 28px rgba(124, 58, 237, 0.24);
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    cursor: pointer;
    transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.mrga-password-reset__submit--link.mrga-submit {
    text-decoration: none;
}

.mrga-password-reset__submit svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.mrga-password-reset__submit.mrga-submit:active {
    transform: translateY(0);
}

.mrga-password-reset__submit.mrga-submit:focus-visible {
    background: var(--mrga-reset-primary-hover);
    outline: 3px solid var(--mrga-reset-focus);
    outline-offset: 2px;
}

.mrga-password-reset__submit.mrga-submit:disabled {
    opacity: 0.66;
    cursor: wait;
    transform: none;
}

.mrga-password-reset .mrga-password-reset__notice {
    display: flex;
    min-height: 52px;
    align-items: center;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--mrga-reset-muted);
    background: #f8fafc;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.mrga-password-reset .mrga-password-reset__notice.is-visible {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.mrga-password-reset .mrga-password-reset__notice.is-info {
    display: flex;
    border-color: #bae6fd;
    color: #075985;
    background: #e0f2fe;
}

.mrga-password-reset .mrga-password-reset__notice.is-success {
    display: flex;
    border-color: #bbf7d0;
    color: #14532d;
    background: #dcfce7;
}

.mrga-password-reset .mrga-password-reset__notice.is-error {
    display: flex;
    border-color: #fecaca;
    color: #991b1b;
    background: #fee2e2;
}

.mrga-password-reset .mrga-password-reset__notice--static {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.mrga-password-reset__footer {
    display: flex;
    justify-content: center;
    min-height: 44px;
}

.mrga-password-reset__footer a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 0 8px;
    color: var(--mrga-reset-primary);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
}

.mrga-password-reset__footer a:focus-visible {
    color: var(--mrga-reset-primary-hover);
    outline: 3px solid var(--mrga-reset-focus);
    outline-offset: 3px;
    text-decoration: underline;
}

@media (hover: hover) and (pointer: fine) {
    .mrga-password-reset__submit.mrga-submit:hover:not(:disabled) {
        background: var(--mrga-reset-primary-hover);
        box-shadow: 0 18px 34px rgba(124, 58, 237, 0.3);
        transform: translateY(-1px);
    }

    .mrga-password-reset__footer a:hover {
        color: var(--mrga-reset-primary-hover);
        text-decoration: underline;
    }
}

@media (min-width: 768px) and (max-width: 1100px) {
    .mrga-password-reset.mrga-form {
        padding: clamp(20px, 3vh, 30px) clamp(18px, 4vw, 32px);
    }

    .mrga-password-reset__stage {
        grid-template-columns: minmax(270px, 0.78fr) minmax(340px, 1fr);
    }

    .mrga-password-reset__brand,
    .mrga-password-reset__panel {
        padding: 30px;
    }

    .mrga-password-reset__brand-copy h1 {
        font-size: clamp(30px, 4vw, 42px);
    }
}

@media (max-width: 767px) {
    body.admin-bar.mrga-forgot-page-body,
    body.admin-bar.mrga-reset-page-body {
        height: calc(100svh - 46px);
        min-height: calc(100svh - 46px);
    }

    .mrga-password-reset.mrga-form {
        padding: 16px;
    }

    .mrga-password-reset__stage {
        width: 100%;
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
    }

    .mrga-password-reset__brand {
        align-content: start;
        gap: 14px;
        padding: 18px 16px;
    }

    .mrga-password-reset__brand::before {
        inset: 10px;
    }

    .mrga-password-reset__brand-head {
        gap: 12px;
    }

    .mrga-password-reset__mark {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .mrga-password-reset__mark img {
        width: 34px;
        height: 34px;
    }

    .mrga-password-reset__brand-lockup span {
        font-size: 18px;
    }

    .mrga-password-reset__brand-copy {
        gap: 6px;
    }

    .mrga-password-reset__brand-copy h1 {
        font-size: 28px;
        line-height: 1.04;
    }

    .mrga-password-reset__brand-copy p {
        display: none;
    }

    .mrga-password-reset__visual {
        display: none;
    }

    .mrga-password-reset__panel {
        align-content: start;
        padding: 22px 16px calc(16px + env(safe-area-inset-bottom));
    }

    .mrga-password-reset__header {
        gap: 7px;
    }

    .mrga-password-reset__header h2 {
        font-size: 28px;
    }

    .mrga-password-reset__header p {
        font-size: 14px;
        line-height: 1.45;
    }

    .mrga-password-reset__form {
        gap: 12px;
        margin-top: 18px;
    }

    .mrga-password-reset.mrga-form input[type="email"],
    .mrga-password-reset.mrga-form input[type="password"],
    .mrga-password-reset__submit.mrga-submit {
        min-height: 50px;
    }

    .mrga-password-reset__form--confirm {
        gap: 10px;
        margin-top: 16px;
    }

    .mrga-password-reset .mrga-password-reset__strength {
        height: 6px;
    }
}

@media (max-width: 380px) {
    .mrga-password-reset__header h2 {
        font-size: 26px;
    }

    .mrga-password-reset__brand-copy h1 {
        font-size: 25px;
    }

    .mrga-password-reset__panel {
        padding-inline: 16px;
    }
}

@media (max-height: 660px) {
    .mrga-password-reset.mrga-form {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .mrga-password-reset__brand,
    .mrga-password-reset__panel {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .mrga-password-reset__brand-copy {
        gap: 8px;
    }

    .mrga-password-reset__brand-copy h1 {
        font-size: clamp(28px, 4vw, 38px);
    }

    .mrga-password-reset__brand-copy p {
        font-size: 14px;
    }

    .mrga-password-reset__visual {
        width: min(100%, 260px);
    }

    .mrga-password-reset__header h2 {
        font-size: 28px;
    }

    .mrga-password-reset__form {
        gap: 10px;
        margin-top: 16px;
    }

    .mrga-password-reset .mrga-password-reset__notice {
        min-height: 46px;
        font-size: 12px;
    }
}

@media (max-height: 560px) {
    .mrga-password-reset__brand {
        display: none;
    }

    .mrga-password-reset__stage {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    }

    .mrga-password-reset__panel {
        padding: 18px 16px;
    }

    .mrga-password-reset__header p {
        display: none;
    }
}

.mrga-social__btn--facebook .mrga-social__icon {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23ffffff' d='M14.5 8H17V4.5h-3c-2.49 0-4.5 2.01-4.5 4.5v2H7v3.5h2.5V21h3.5v-6.5h2.83l.67-3.5H13V9c0-.55.45-1 1-1z'/></svg>");
}

/* Email verification result page */

body.mrga-email-verification-page-body {
    display: flex;
    height: 100svh;
    min-height: 100svh;
    flex-direction: column;
    overflow: hidden;
    background: #f7f8fc;
}

body.admin-bar.mrga-email-verification-page-body {
    height: calc(100svh - 32px);
    min-height: calc(100svh - 32px);
}

.mrga-email-verification-page {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    padding: clamp(24px, 4vh, 42px) clamp(24px, 5vw, 56px);
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(124, 58, 237, 0.1), rgba(14, 165, 233, 0.06) 48%, rgba(34, 197, 94, 0.08)),
        #f7f8fc;
}

.mrga-email-verification,
.mrga-email-verification * {
    box-sizing: border-box;
}

.mrga-email-verification {
    --mrga-verify-primary: var(--mrg-color-primary, #7c3aed);
    --mrga-verify-primary-hover: var(--mrg-color-primary-hover, #6d28d9);
    --mrga-verify-ink: #171826;
    --mrga-verify-muted: #657085;
    --mrga-verify-line: #d8deea;
    --mrga-verify-panel: #fffffd;
    --mrga-verify-focus: rgba(124, 58, 237, 0.22);
    position: relative;
    display: grid;
    width: min(980px, 100%);
    max-height: 100%;
    min-height: 0;
    grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1fr);
    overflow: hidden;
    border: 1px solid rgba(216, 222, 234, 0.96);
    border-radius: 8px;
    background: var(--mrga-verify-panel);
    box-shadow: 0 22px 60px rgba(60, 44, 98, 0.16), 0 4px 18px rgba(12, 18, 32, 0.06);
    isolation: isolate;
}

.mrga-email-verification__brand,
.mrga-email-verification__panel {
    position: relative;
    z-index: 1;
    min-width: 0;
    min-height: 0;
}

.mrga-email-verification__confetti {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.mrga-email-verification__confetti-piece {
    position: absolute;
    top: -20px;
    left: var(--mrga-confetti-left, 50%);
    display: block;
    width: var(--mrga-confetti-width, 8px);
    height: var(--mrga-confetti-height, 14px);
    border-radius: 2px;
    background: var(--mrga-confetti-color, var(--mrga-verify-primary));
    opacity: 0;
    transform: translate3d(0, -32px, 0) rotate(var(--mrga-confetti-start, 0deg));
    animation: mrga-verify-confetti-fall var(--mrga-confetti-duration, 1800ms) cubic-bezier(0.16, 1, 0.3, 1) var(--mrga-confetti-delay, 0ms) both;
    will-change: transform, opacity;
}

.mrga-email-verification__confetti-piece:nth-child(1) {
    --mrga-confetti-left: 14%;
    --mrga-confetti-drop: 230px;
    --mrga-confetti-color: #7c3aed;
    --mrga-confetti-delay: 60ms;
    --mrga-confetti-rotate: 172deg;
}

.mrga-email-verification__confetti-piece:nth-child(2) {
    --mrga-confetti-left: 22%;
    --mrga-confetti-drop: 340px;
    --mrga-confetti-color: #22c55e;
    --mrga-confetti-delay: 150ms;
    --mrga-confetti-rotate: -118deg;
}

.mrga-email-verification__confetti-piece:nth-child(3) {
    --mrga-confetti-left: 31%;
    --mrga-confetti-drop: 255px;
    --mrga-confetti-width: 12px;
    --mrga-confetti-height: 8px;
    --mrga-confetti-color: #facc15;
    --mrga-confetti-delay: 20ms;
    --mrga-confetti-rotate: 210deg;
}

.mrga-email-verification__confetti-piece:nth-child(4) {
    --mrga-confetti-left: 43%;
    --mrga-confetti-drop: 380px;
    --mrga-confetti-color: #0ea5e9;
    --mrga-confetti-delay: 190ms;
    --mrga-confetti-rotate: -230deg;
}

.mrga-email-verification__confetti-piece:nth-child(5) {
    --mrga-confetti-left: 52%;
    --mrga-confetti-drop: 300px;
    --mrga-confetti-width: 10px;
    --mrga-confetti-height: 10px;
    --mrga-confetti-color: #ff695f;
    --mrga-confetti-delay: 90ms;
    --mrga-confetti-rotate: 155deg;
}

.mrga-email-verification__confetti-piece:nth-child(6) {
    --mrga-confetti-left: 61%;
    --mrga-confetti-drop: 395px;
    --mrga-confetti-color: #a855f7;
    --mrga-confetti-delay: 250ms;
    --mrga-confetti-rotate: -185deg;
}

.mrga-email-verification__confetti-piece:nth-child(7) {
    --mrga-confetti-left: 70%;
    --mrga-confetti-drop: 270px;
    --mrga-confetti-width: 13px;
    --mrga-confetti-height: 7px;
    --mrga-confetti-color: #54c64b;
    --mrga-confetti-delay: 110ms;
    --mrga-confetti-rotate: 260deg;
}

.mrga-email-verification__confetti-piece:nth-child(8) {
    --mrga-confetti-left: 80%;
    --mrga-confetti-drop: 360px;
    --mrga-confetti-color: #f59e0b;
    --mrga-confetti-delay: 210ms;
    --mrga-confetti-rotate: -145deg;
}

.mrga-email-verification__confetti-piece:nth-child(9) {
    --mrga-confetti-left: 88%;
    --mrga-confetti-drop: 245px;
    --mrga-confetti-color: #38bdf8;
    --mrga-confetti-delay: 40ms;
    --mrga-confetti-rotate: 190deg;
}

.mrga-email-verification__confetti-piece:nth-child(10) {
    --mrga-confetti-left: 9%;
    --mrga-confetti-drop: 330px;
    --mrga-confetti-width: 11px;
    --mrga-confetti-height: 7px;
    --mrga-confetti-color: #fb7185;
    --mrga-confetti-delay: 310ms;
    --mrga-confetti-rotate: -205deg;
}

.mrga-email-verification__confetti-piece:nth-child(11) {
    --mrga-confetti-left: 36%;
    --mrga-confetti-drop: 410px;
    --mrga-confetti-color: #7c3aed;
    --mrga-confetti-delay: 330ms;
    --mrga-confetti-rotate: 245deg;
}

.mrga-email-verification__confetti-piece:nth-child(12) {
    --mrga-confetti-left: 47%;
    --mrga-confetti-drop: 230px;
    --mrga-confetti-width: 12px;
    --mrga-confetti-height: 8px;
    --mrga-confetti-color: #22c55e;
    --mrga-confetti-delay: 280ms;
    --mrga-confetti-rotate: -120deg;
}

.mrga-email-verification__confetti-piece:nth-child(13) {
    --mrga-confetti-left: 57%;
    --mrga-confetti-drop: 335px;
    --mrga-confetti-color: #facc15;
    --mrga-confetti-delay: 30ms;
    --mrga-confetti-rotate: 186deg;
}

.mrga-email-verification__confetti-piece:nth-child(14) {
    --mrga-confetti-left: 66%;
    --mrga-confetti-drop: 455px;
    --mrga-confetti-width: 10px;
    --mrga-confetti-height: 10px;
    --mrga-confetti-color: #0ea5e9;
    --mrga-confetti-delay: 370ms;
    --mrga-confetti-rotate: -255deg;
}

.mrga-email-verification__confetti-piece:nth-child(15) {
    --mrga-confetti-left: 74%;
    --mrga-confetti-drop: 315px;
    --mrga-confetti-color: #ff695f;
    --mrga-confetti-delay: 80ms;
    --mrga-confetti-rotate: 175deg;
}

.mrga-email-verification__confetti-piece:nth-child(16) {
    --mrga-confetti-left: 83%;
    --mrga-confetti-drop: 430px;
    --mrga-confetti-color: #a855f7;
    --mrga-confetti-delay: 420ms;
    --mrga-confetti-rotate: -225deg;
}

.mrga-email-verification__confetti-piece:nth-child(17) {
    --mrga-confetti-left: 18%;
    --mrga-confetti-drop: 440px;
    --mrga-confetti-width: 13px;
    --mrga-confetti-height: 7px;
    --mrga-confetti-color: #38bdf8;
    --mrga-confetti-delay: 260ms;
    --mrga-confetti-rotate: 300deg;
}

.mrga-email-verification__confetti-piece:nth-child(18) {
    --mrga-confetti-left: 27%;
    --mrga-confetti-drop: 285px;
    --mrga-confetti-color: #f59e0b;
    --mrga-confetti-delay: 390ms;
    --mrga-confetti-rotate: -165deg;
}

.mrga-email-verification__brand {
    position: relative;
    display: grid;
    align-content: space-between;
    gap: 26px;
    padding: clamp(26px, 4vw, 44px);
    overflow: hidden;
    color: #fbfbff;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 253, 0.24), rgba(255, 255, 253, 0) 30%),
        linear-gradient(155deg, var(--mrga-verify-primary) 0%, var(--mrga-verify-primary-hover) 56%, #20113f 100%);
}

.mrga-email-verification__brand::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 253, 0.13);
    border-radius: 8px;
    pointer-events: none;
}

.mrga-email-verification__brand-lockup {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
}

.mrga-email-verification__mark {
    display: flex;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 253, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 253, 0.13);
    box-shadow: 0 14px 34px rgba(16, 9, 34, 0.24);
}

.mrga-email-verification__mark img {
    width: 44px;
    height: 44px;
}

.mrga-email-verification__mark span {
    color: #fbfbff;
    font-family: var(--mrg-font-heading, inherit);
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
}

.mrga-email-verification__brand-name {
    color: #fbfbff;
    font-family: var(--mrg-font-heading, inherit);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
}

.mrga-email-verification__pattern {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(100%, 290px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.mrga-email-verification__pattern span {
    display: flex;
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 253, 0.18);
    border-radius: 8px;
    color: #171826;
    font-family: var(--mrg-font-heading, inherit);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 253, 0.72), 0 14px 26px rgba(16, 9, 34, 0.16);
}

.mrga-email-verification__pattern span:nth-child(1) {
    background: #dcfce7;
}

.mrga-email-verification__pattern span:nth-child(2) {
    background: #fef3c7;
}

.mrga-email-verification__pattern span:nth-child(3) {
    background: #e0f2fe;
}

.mrga-email-verification__panel {
    position: relative;
    display: grid;
    align-content: center;
    overflow: hidden;
    padding: clamp(30px, 5vw, 54px);
    background:
        linear-gradient(180deg, rgba(255, 255, 253, 0.98), rgba(248, 250, 255, 0.98)),
        var(--mrga-verify-panel);
}

.mrga-email-verification__panel > :not(.mrga-email-verification__confetti) {
    position: relative;
    z-index: 1;
}

.mrga-email-verification__status {
    display: flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    margin: 0 0 18px;
    border-radius: 8px;
    color: #15803d;
    background: #dcfce7;
    box-shadow: 0 16px 32px rgba(34, 197, 94, 0.16);
}

.mrga-email-verification--error .mrga-email-verification__status {
    color: #b45309;
    background: #fef3c7;
    box-shadow: 0 16px 32px rgba(245, 158, 11, 0.16);
}

.mrga-email-verification__status svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.1;
}

.mrga-email-verification__eyebrow {
    margin: 0 0 8px;
    color: var(--mrga-verify-primary);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.mrga-email-verification h1 {
    max-width: 460px;
    margin: 0;
    color: var(--mrga-verify-ink);
    font-family: var(--mrg-font-heading, inherit);
    font-size: clamp(30px, 3.2vw, 42px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: 0;
}

.mrga-email-verification__party {
    display: inline-flex;
    width: 0.92em;
    height: 0.92em;
    margin: 0 0.06em 0 0.1em;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    vertical-align: -0.06em;
}

.mrga-email-verification__party svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    fill: #fef3c7;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.75;
    filter: drop-shadow(0 8px 12px rgba(245, 158, 11, 0.2));
}

.mrga-email-verification__message {
    max-width: 470px;
    margin: 14px 0 0;
    color: var(--mrga-verify-muted);
    font-size: 15px;
    line-height: 1.55;
}

.mrga-email-verification__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.mrga-email-verification__button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
}

.mrga-email-verification__button--primary {
    min-width: 190px;
    color: #fbfbff;
    background: var(--mrga-verify-primary);
    box-shadow: 0 14px 28px rgba(124, 58, 237, 0.24);
}

.mrga-email-verification__button--secondary {
    min-width: 142px;
    border: 1px solid var(--mrga-verify-line);
    color: var(--mrga-verify-primary);
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(29, 19, 67, 0.06);
}

.mrga-email-verification__button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.mrga-email-verification__button:focus-visible {
    outline: 3px solid var(--mrga-verify-focus);
    outline-offset: 2px;
    text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
    .mrga-email-verification__button--primary:hover {
        color: #fbfbff;
        background: var(--mrga-verify-primary-hover);
        box-shadow: 0 18px 34px rgba(124, 58, 237, 0.3);
        text-decoration: none;
        transform: translateY(-1px);
    }

    .mrga-email-verification__button--secondary:hover {
        border-color: rgba(124, 58, 237, 0.28);
        color: var(--mrga-verify-primary-hover);
        text-decoration: none;
        transform: translateY(-1px);
    }
}

@keyframes mrga-verify-confetti-fall {
    0% {
        opacity: 0;
        transform: translate3d(0, -32px, 0) rotate(0deg);
    }

    12% {
        opacity: 0.95;
    }

    78% {
        opacity: 0.9;
    }

    100% {
        opacity: 0;
        transform: translate3d(var(--mrga-confetti-drift, 18px), var(--mrga-confetti-drop, 320px), 0) rotate(var(--mrga-confetti-rotate, 180deg));
    }
}

@media (prefers-reduced-motion: reduce) {
    .mrga-email-verification__confetti-piece {
        opacity: 0.42;
        transform: translate3d(0, 18px, 0) rotate(var(--mrga-confetti-rotate, 0deg));
        animation: none;
        will-change: auto;
    }

    .mrga-email-verification__party svg {
        filter: none;
    }
}

@media (min-width: 768px) and (max-width: 1100px) {
    .mrga-email-verification-page {
        padding: clamp(20px, 3vh, 30px) clamp(18px, 4vw, 32px);
    }

    .mrga-email-verification {
        grid-template-columns: minmax(250px, 0.74fr) minmax(340px, 1fr);
    }

    .mrga-email-verification__brand,
    .mrga-email-verification__panel {
        padding: 30px;
    }
}

@media (max-width: 767px) {
    body.admin-bar.mrga-email-verification-page-body {
        height: calc(100svh - 46px);
        min-height: calc(100svh - 46px);
    }

    .mrga-email-verification-page {
        padding: 16px;
    }

    .mrga-email-verification {
        width: 100%;
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
    }

    .mrga-email-verification__brand {
        align-content: start;
        gap: 0;
        padding: 18px 16px;
    }

    .mrga-email-verification__brand::before {
        inset: 10px;
    }

    .mrga-email-verification__mark {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .mrga-email-verification__mark img {
        width: 34px;
        height: 34px;
    }

    .mrga-email-verification__brand-name {
        font-size: 20px;
    }

    .mrga-email-verification__pattern {
        display: none;
    }

    .mrga-email-verification__panel {
        align-content: start;
        padding: 22px 16px calc(16px + env(safe-area-inset-bottom));
    }

    .mrga-email-verification__status {
        width: 54px;
        height: 54px;
        margin-bottom: 14px;
    }

    .mrga-email-verification__status svg {
        width: 30px;
        height: 30px;
    }

    .mrga-email-verification h1 {
        font-size: 30px;
        line-height: 1.04;
    }

    .mrga-email-verification__message {
        font-size: 14px;
        line-height: 1.45;
    }

    .mrga-email-verification__actions {
        display: grid;
        gap: 10px;
        margin-top: 20px;
    }

    .mrga-email-verification__button {
        width: 100%;
        min-height: 50px;
    }
}

@media (max-width: 380px) {
    .mrga-email-verification h1 {
        font-size: 27px;
    }

    .mrga-email-verification__panel {
        padding-inline: 16px;
    }
}

@media (max-height: 620px) {
    .mrga-email-verification-page {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .mrga-email-verification__brand,
    .mrga-email-verification__panel {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .mrga-email-verification__status {
        width: 52px;
        height: 52px;
        margin-bottom: 12px;
    }

    .mrga-email-verification h1 {
        font-size: clamp(27px, 3vw, 34px);
    }

    .mrga-email-verification__message {
        margin-top: 10px;
    }

    .mrga-email-verification__actions {
        margin-top: 18px;
    }
}
