body.gm-account-body {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(180deg, #fff8f0 0%, #fff8f0 38%, #f7ecd9 38%, #f7ecd9 100%);
    color: #2a0136;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
}

body.gm-account-body *,
body.gm-account-body *::before,
body.gm-account-body *::after {
    box-sizing: border-box;
}

.gm-account-body a {
    color: #2a0136;
    font-weight: 700;
    text-decoration: none;
}

.gm-account-body a:hover,
.gm-account-body a:focus {
    color: #2a0136;
    text-decoration: underline;
}

.fix-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: clamp(22px, 5vw, 58px) 16px;
}

.gm-account-shell {
    display: flex;
    justify-content: center;
    width: 100%;
}

.form-container {
    position: relative;
    width: min(100%, 462px);
    margin: 0 auto;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid rgba(42, 1, 54, 0.12);
    border-radius: 18px;
    background: #fffdf8;
    box-shadow: 0 18px 44px rgba(42, 1, 54, 0.10);
    color: #2a0136;
}

.form-container.gm-account-card-wide {
    width: min(100%, 860px);
}

.form-container::before {
    content: "";
    display: block;
    width: clamp(148px, 36vw, 190px);
    height: clamp(48px, 10vw, 62px);
    margin: 0 auto 18px;
    background-image: url("/images/GenMeds-logo-updated.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.form-container h1,
.form-container h2 {
    margin: 0 0 8px;
    color: #2a0136;
    font-size: clamp(1.42rem, 4vw, 1.85rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    text-align: center;
}

.form-container .gm-account-intro,
.form-container .gm-account-status-copy,
.form-container p {
    margin: 0 auto 18px;
    max-width: 36rem;
    color: rgba(42, 1, 54, 0.70);
    font-size: 0.93rem;
    line-height: 1.65;
    text-align: center;
}

.gm-account-form-panel {
    width: 100%;
    margin: 22px 0 0;
    padding: clamp(18px, 4vw, 24px);
    border: 1px solid rgba(42, 1, 54, 0.11);
    border-radius: 10px;
    background: #fffdf8;
    box-shadow: 0 10px 26px rgba(42, 1, 54, 0.05);
}

.gm-account-form-panel:first-child {
    margin-top: 0;
}

.gm-account-form-panel .row {
    --bs-gutter-x: 1rem;
}

.gm-account-body .form-group label,
.gm-account-body .form-label,
.gm-account-body .theme-color-text,
.gm-account-body .checkbox label {
    color: #2a0136 !important;
    font-weight: 700;
}

.gm-account-body .form-control {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-bottom: 1px solid rgba(42, 1, 54, 0.22);
    border-radius: 0;
    background-color: transparent;
    color: #2a0136;
    box-shadow: none;
    font-size: 0.95rem;
    line-height: 1.4;
    padding: 10px 0;
}

.gm-account-body .form-control::placeholder {
    color: rgba(42, 1, 54, 0.52);
    opacity: 1;
}

.gm-account-body .form-control:focus {
    border-color: #2a0136;
    background-color: transparent;
    box-shadow: none;
    color: #2a0136;
    outline: 0;
}

.gm-account-body .form-floating > .form-control {
    height: 52px;
    min-height: 52px;
    padding-top: 20px;
    padding-bottom: 6px;
}

.gm-account-body .form-floating > label {
    color: rgba(42, 1, 54, 0.62);
    padding-left: 0;
}

.password-container,
.gm-password-field {
    position: relative;
}

.password-input {
    padding-right: 66px !important;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    min-width: 46px;
    min-height: 32px;
    padding: 0 0 0 10px;
    border: 0;
    background: transparent;
    color: #2a0136;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
    text-align: right;
    text-transform: uppercase;
}

.password-toggle:hover,
.password-toggle:focus {
    color: #2a0136;
    text-decoration: underline;
}

.gm-account-body .position-relative > .password-toggle {
    top: 22px;
}

.gm-account-body .btn-primary,
.gm-account-body .gm-account-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid #2a0136;
    border-radius: 10px;
    background: #2a0136;
    color: #fff8f0;
    box-shadow: 0 14px 28px rgba(42, 1, 54, 0.20);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.gm-account-body .btn-primary:hover,
.gm-account-body .btn-primary:focus,
.gm-account-body .gm-account-primary:hover,
.gm-account-body .gm-account-primary:focus {
    border-color: #3b074c;
    background: #3b074c;
    color: #fff8f0;
    box-shadow: 0 16px 30px rgba(42, 1, 54, 0.24);
    text-decoration: none;
}

.gm-account-body .btn-primary:active,
.gm-account-body .gm-account-primary:active {
    transform: translateY(1px);
}

.gm-account-body .btn-link {
    color: #2a0136;
    font-weight: 800;
}

.forgot-password {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    color: #2a0136;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
}

.form-footer {
    margin-top: 16px;
    color: rgba(42, 1, 54, 0.70);
    font-size: 0.92rem;
    font-weight: 500;
    text-align: center;
}

.gm-account-body .checkbox {
    gap: 12px;
    color: #2a0136;
    font-size: 0.9rem;
}

.gm-account-body .form-check-input {
    border-color: rgba(42, 1, 54, 0.42);
}

.gm-account-body .form-check-input:checked {
    border-color: #2a0136;
    background-color: #2a0136;
}

.gm-account-body .form-check-input:focus {
    border-color: #2a0136;
    box-shadow: 0 0 0 0.2rem rgba(42, 1, 54, 0.14);
}

.gm-password-helper {
    margin: 14px 0 0;
    color: rgba(42, 1, 54, 0.72);
}

.gm-password-helper-summary {
    margin: 0 0 12px !important;
    max-width: none !important;
    color: rgba(42, 1, 54, 0.70) !important;
    font-size: 0.86rem !important;
    font-weight: 600;
    line-height: 1.45 !important;
    text-align: left !important;
}

.gm-password-helper-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.gm-password-helper-rule {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: rgba(42, 1, 54, 0.74);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
}

.gm-password-helper-indicator {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(42, 1, 54, 0.30);
    border-radius: 999px;
    background: #fffdf8;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.gm-password-helper-indicator::after {
    content: "";
    display: block;
    width: 5px;
    height: 9px;
    border-right: 2px solid #fff8f0;
    border-bottom: 2px solid #fff8f0;
    opacity: 0;
    transform: rotate(40deg) translate(-1px, -1px);
    transition: opacity 160ms ease;
}

.gm-password-helper-rule.is-complete {
    color: #2a0136;
}

.gm-password-helper-rule.is-complete .gm-password-helper-indicator {
    border-color: #2a0136;
    background: #2a0136;
    box-shadow: 0 6px 14px rgba(42, 1, 54, 0.16);
}

.gm-password-helper-rule.is-complete .gm-password-helper-indicator::after {
    opacity: 1;
}

.gm-account-trust {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(42, 1, 54, 0.09);
}

.gm-account-trust-main,
.gm-account-trust-grid {
    display: grid;
    gap: 10px;
}

.gm-account-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gm-account-trust-item {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: rgba(42, 1, 54, 0.76);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
}

.gm-account-trust-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(42, 1, 54, 0.14);
    background: rgba(42, 1, 54, 0.06);
    color: #2a0136;
}

.gm-account-trust-icon::before {
    content: "";
    display: block;
    width: 15px;
    height: 15px;
    background: currentColor;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
}

.gm-account-trust-icon-secure::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2.5 5 5.2v5.7c0 4.5 2.8 8.6 7 10.3 4.2-1.7 7-5.8 7-10.3V5.2L12 2.5Zm3.8 7.4-4.4 4.5-2.2-2.2-1.3 1.3 3.5 3.5 5.8-5.9-1.4-1.2Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2.5 5 5.2v5.7c0 4.5 2.8 8.6 7 10.3 4.2-1.7 7-5.8 7-10.3V5.2L12 2.5Zm3.8 7.4-4.4 4.5-2.2-2.2-1.3 1.3 3.5 3.5 5.8-5.9-1.4-1.2Z'/%3E%3C/svg%3E");
}

.gm-account-trust-icon-login::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 3.5H7A2.5 2.5 0 0 0 4.5 6v12A2.5 2.5 0 0 0 7 20.5h10A2.5 2.5 0 0 0 19.5 18v-2h-2v2c0 .3-.2.5-.5.5H7a.5.5 0 0 1-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v2h2V6A2.5 2.5 0 0 0 17 3.5Zm-4.4 4.8-1.4 1.4 1.3 1.3H3v2h9.5l-1.3 1.3 1.4 1.4L16.3 12l-3.7-3.7Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 3.5H7A2.5 2.5 0 0 0 4.5 6v12A2.5 2.5 0 0 0 7 20.5h10A2.5 2.5 0 0 0 19.5 18v-2h-2v2c0 .3-.2.5-.5.5H7a.5.5 0 0 1-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v2h2V6A2.5 2.5 0 0 0 17 3.5Zm-4.4 4.8-1.4 1.4 1.3 1.3H3v2h9.5l-1.3 1.3 1.4 1.4L16.3 12l-3.7-3.7Z'/%3E%3C/svg%3E");
}

.gm-account-trust-icon-pharmacy::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2.5 14.2 4.6l3-.4.7 2.9 2.6 1.5-1.5 2.6.7 2.9-3 .4-2.2 2.1-2.5-1.3-2.5 1.3-2.2-2.1-3-.4.7-2.9-1.5-2.6 2.6-1.5.7-2.9 3 .4L12 2.5Zm3.7 7.1-1.3-1.3-3.2 3.2-1.4-1.4-1.3 1.3 2.7 2.7 4.5-4.5ZM8.3 17.9l-1 3.6 4.7-2.2 4.7 2.2-1-3.6-3.7 1.9-3.7-1.9Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2.5 14.2 4.6l3-.4.7 2.9 2.6 1.5-1.5 2.6.7 2.9-3 .4-2.2 2.1-2.5-1.3-2.5 1.3-2.2-2.1-3-.4.7-2.9-1.5-2.6 2.6-1.5.7-2.9 3 .4L12 2.5Zm3.7 7.1-1.3-1.3-3.2 3.2-1.4-1.4-1.3 1.3 2.7 2.7 4.5-4.5ZM8.3 17.9l-1 3.6 4.7-2.2 4.7 2.2-1-3.6-3.7 1.9-3.7-1.9Z'/%3E%3C/svg%3E");
}

.gm-account-body .text-danger,
.gm-account-body .validation-summary-errors,
.gm-account-body .field-validation-error {
    color: #2a0136 !important;
    font-size: 0.82rem;
    font-weight: 700;
}

.gm-account-body .validation-summary-errors,
.gm-account-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(42, 1, 54, 0.14);
    border-left: 5px solid #2a0136;
    border-radius: 10px;
    background: rgba(42, 1, 54, 0.05);
    color: #2a0136;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.45;
}

.gm-account-alert h6,
.gm-account-body .validation-summary-errors ul,
.gm-account-body .validation-summary-errors li {
    margin: 0;
}

.gm-account-body .validation-summary-errors ul {
    padding-left: 18px;
}

.gm-account-body .alert {
    border: 1px solid rgba(42, 1, 54, 0.14);
    border-left: 5px solid #2a0136;
    border-radius: 10px;
    background: rgba(42, 1, 54, 0.05);
    color: #2a0136;
    font-weight: 700;
}

.gm-account-body .alert .btn-close {
    opacity: 0.7;
}

.otp-banner {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(42, 1, 54, 0.14);
    border-left: 5px solid #2a0136;
    border-radius: 10px;
    background: rgba(42, 1, 54, 0.05);
    color: #2a0136;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.45;
    text-align: left;
}

.btn-resend,
.gm-account-body .gm-account-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(42, 1, 54, 0.40);
    border-radius: 999px;
    background: #fffdf8;
    color: #2a0136;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.btn-resend:hover,
.btn-resend:focus,
.gm-account-body .gm-account-secondary:hover,
.gm-account-body .gm-account-secondary:focus {
    border-color: #2a0136;
    background: rgba(42, 1, 54, 0.06);
    color: #2a0136;
    text-decoration: none;
}

.gm-account-divider {
    margin: 18px 0;
    border: 0;
    border-top: 1px solid rgba(42, 1, 54, 0.10);
    opacity: 1;
}

.gm-account-body input::-ms-reveal,
.gm-account-body input::-ms-clear,
.gm-account-body input[type="password"]::-webkit-credentials-auto-fill-button,
.gm-account-body input[type="password"]::-webkit-password-toggle-button {
    display: none !important;
}

.dob-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dob-row .ms-2 {
    flex: 1 1 auto;
}

.bottom-border {
    border-bottom: 1px solid rgba(42, 1, 54, 0.10);
    padding-bottom: 12px;
}

.gender-toggle-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gender-toggle-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gender-toggle-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid rgba(42, 1, 54, 0.28);
    border-radius: 999px;
    background: #fff8f0;
    color: #2a0136 !important;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.gender-toggle-input:checked + .gender-toggle-label {
    border-color: #2a0136;
    background: #2a0136;
    color: #fff8f0 !important;
    box-shadow: 0 8px 18px rgba(42, 1, 54, 0.18);
}

.gm-account-status-actions {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

@media (max-width: 767.98px) {
    .fix-wrapper {
        align-items: flex-start;
        padding: 18px 12px 34px;
    }

    .form-container,
    .form-container.gm-account-card-wide {
        width: 100%;
        padding: 20px;
        border-radius: 14px;
    }

    .gm-account-form-panel {
        padding: 18px;
    }

    .gm-account-trust-grid {
        grid-template-columns: 1fr;
    }

    .gm-account-body .checkbox {
        align-items: flex-start !important;
        flex-direction: column;
    }

    .dob-row,
    .gm-account-body .bottom-border.d-flex {
        align-items: flex-start;
        flex-direction: column;
    }

    .dob-row .ms-2,
    .gm-account-body .bottom-border .ms-2 {
        width: 100%;
        margin-left: 0 !important;
    }
}

@media (max-width: 420px) {
    .form-container {
        padding: 18px 14px;
    }

    .gm-account-form-panel {
        padding: 16px 14px;
    }

    .gm-account-form-panel .row > [class*="col"] {
        width: 100%;
        flex: 0 0 100%;
    }
}
