.ms-account-page {
    width: 100%;
    min-height: 100vh;
    padding: 30px;
    background:
        radial-gradient(circle at 12% 15%, rgba(196, 20, 72, 0.10), transparent 32%),
        radial-gradient(circle at 85% 20%, rgba(245, 190, 170, 0.35), transparent 30%),
        linear-gradient(135deg, #fff8f4 0%, #ffffff 45%, #fff1ec 100%);
    font-family: inherit;
    box-sizing: border-box;
}

.ms-account-page * {
    box-sizing: border-box;
}

.ms-auth-layout {
    width: min(1240px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 430px 1fr;
    gap: 36px;
    align-items: stretch;
}

.ms-auth-left {
    padding: 34px 6px 20px;
}

.ms-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 62px;
}

.ms-logo-icon {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #b30d3f, #df4667);
    color: #ffffff;
    font-size: 27px;
    box-shadow: 0 16px 34px rgba(179, 13, 63, 0.25);
}

.ms-logo h3 {
    margin: 0;
    color: #b30d3f;
    font-size: 29px;
    line-height: 1;
    font-weight: 900;
}

.ms-logo span {
    display: block;
    color: #4b5563;
    font-size: 13px;
    margin-top: 5px;
}

.ms-left-content h1 {
    margin: 0 0 18px;
    max-width: 390px;
    color: #5d1823;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.2;
    letter-spacing: -1px;
    font-family: Georgia, serif;
}

.ms-left-content p {
    margin: 0;
    max-width: 360px;
    color: #5f6671;
    font-size: 16px;
    line-height: 1.7;
}

.ms-hero-visual {
    margin-top: 34px;
    min-height: 280px;
    border-radius: 30px;
    background:
        linear-gradient(160deg, rgba(179, 13, 63, 0.08), rgba(255, 255, 255, 0.82)),
        linear-gradient(135deg, #ffe5e8, #fff8f4);
    border: 1px solid rgba(179, 13, 63, 0.10);
    box-shadow: 0 22px 60px rgba(91, 24, 35, 0.08);
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}

.ms-hero-visual::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(179, 13, 63, 0.08);
    right: -70px;
    bottom: -80px;
}

.ms-heart-bg {
    font-size: 150px;
    color: rgba(179, 13, 63, 0.18);
    line-height: 1;
}

.ms-hero-text {
    position: absolute;
    bottom: 25px;
    left: 25px;
    right: 25px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.ms-hero-text strong {
    display: block;
    color: #5d1823;
    font-size: 17px;
    margin-bottom: 5px;
}

.ms-hero-text span {
    display: block;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.45;
}

.ms-trust-list {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.ms-trust-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(179, 13, 63, 0.08);
    box-shadow: 0 18px 42px rgba(90, 23, 32, 0.08);
    backdrop-filter: blur(10px);
}

.ms-trust-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #ffe0e5;
    color: #b30d3f;
    font-size: 23px;
    flex: 0 0 auto;
}

.ms-trust-item strong {
    display: block;
    color: #b30d3f;
    font-size: 17px;
    margin-bottom: 5px;
}

.ms-trust-item span {
    display: block;
    color: #59616a;
    font-size: 14px;
}

.ms-login-box {
    margin-top: 34px;
    padding: 24px;
    text-align: center;
    border-radius: 18px;
    border: 1px solid #f2c4ca;
    background: rgba(255, 255, 255, 0.55);
}

.ms-login-box p {
    margin: 0 0 14px;
    color: #59616a;
    font-weight: 700;
}

.ms-login-box button,
.ms-back-signup {
    min-width: 150px;
    min-height: 45px;
    border: 1px solid #f0c2c7;
    border-radius: 12px;
    background: #ffffff;
    color: #b30d3f;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
}

.ms-auth-right {
    min-width: 0;
}

.ms-form-card {
    padding: 46px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 30px 90px rgba(90, 23, 32, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.ms-form {
    display: none;
}

.ms-form.active {
    display: block;
}

.ms-form-heading {
    margin-bottom: 30px;
}

.ms-form-heading span {
    display: inline-flex;
    margin-bottom: 10px;
    color: #b30d3f;
    font-size: 14px;
    font-weight: 900;
    background: #fff0f3;
    padding: 8px 13px;
    border-radius: 999px;
}

.ms-form-heading h2 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 950;
}

.ms-form-heading p {
    margin: 0;
    color: #6b7280;
    font-size: 16px;
}

.ms-field {
    margin-bottom: 23px;
}

.ms-field label {
    display: block;
    margin-bottom: 10px;
    color: #18181b;
    font-size: 15px;
    font-weight: 900;
}

.ms-input-wrap,
.ms-phone-wrap {
    min-height: 62px;
    display: flex;
    align-items: center;
    border: 1px solid #dedede;
    border-radius: 15px;
    background: #ffffff;
    overflow: hidden;
    transition: 0.25s ease;
}

.ms-input-wrap:focus-within,
.ms-phone-wrap:focus-within {
    border-color: #b30d3f;
    box-shadow: 0 0 0 4px rgba(179, 13, 63, 0.08);
}

.ms-input-wrap > span {
    width: 58px;
    text-align: center;
    color: #5d636b;
    flex: 0 0 auto;
}

.ms-input-wrap input,
.ms-phone-wrap input,
.ms-phone-wrap select {
    min-height: 60px;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    font-size: 16px;
    color: #111827;
    box-shadow: none !important;
}

.ms-input-wrap input {
    width: 100%;
    padding: 0 18px 0 0;
}

.ms-phone-wrap select {
    width: 185px;
    padding: 0 14px;
    border-right: 1px solid #e5e7eb !important;
    cursor: pointer;
    font-weight: 800;
    color: #374151;
}

.ms-phone-wrap input {
    width: 100%;
    padding: 0 18px;
}

.ms-input-wrap input::placeholder,
.ms-phone-wrap input::placeholder {
    color: #9ca3af;
}

.ms-toggle-pass {
    width: 54px;
    height: 54px;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: #59616a;
    flex: 0 0 auto;
}

.ms-gender-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.ms-gender-card {
    min-height: 112px;
    border: 1px solid #dddddd;
    border-radius: 16px;
    background: #ffffff;
    display: grid;
    place-items: center;
    position: relative;
    cursor: pointer;
    transition: 0.25s ease;
}

.ms-gender-card input {
    display: none;
}

.ms-gender-card strong {
    display: block;
    color: #111827;
    font-size: 32px;
    line-height: 1;
}

.ms-gender-card small {
    display: block;
    margin-top: 8px;
    color: #111827;
    font-size: 16px;
    font-weight: 800;
}

.ms-gender-card .ms-check {
    display: none;
    position: absolute;
    right: -9px;
    top: -9px;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    place-items: center;
    background: #b30d3f;
    color: #ffffff;
    font-weight: 900;
}

.ms-gender-card.active {
    border-color: #b30d3f;
    background: linear-gradient(135deg, rgba(179, 13, 63, 0.08), #ffffff);
    box-shadow: 0 14px 34px rgba(179, 13, 63, 0.12);
}

.ms-gender-card.active strong,
.ms-gender-card.active small {
    color: #b30d3f;
}

.ms-gender-card.active .ms-check {
    display: grid;
}

.ms-dob-row {
    display: grid;
    grid-template-columns: 1fr 175px;
    gap: 18px;
}

.ms-age-box {
    min-height: 62px;
    border: 1px solid #dedede;
    border-radius: 15px;
    background: #ffffff;
    padding: 12px 18px;
    transition: 0.25s ease;
}

.ms-age-box strong {
    display: block;
    color: #111827;
    font-size: 13px;
    margin-bottom: 5px;
}

.ms-age-box span {
    color: #111827;
    font-size: 15px;
    font-weight: 900;
}

.ms-age-box.eligible {
    border-color: #10b981;
    background: #ecfdf5;
}

.ms-age-box.eligible span {
    color: #047857;
}

.ms-age-box.not-eligible,
.ms-age-box.warning {
    border-color: #ef4444;
    background: #fef2f2;
}

.ms-age-box.not-eligible span,
.ms-age-box.warning span {
    color: #b91c1c;
}

.ms-dob-note,
.ms-help {
    display: block;
    margin-top: 8px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.45;
}

.ms-strength-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    margin-top: 9px;
}

.ms-strength-row small {
    color: #6b7280;
    font-size: 13px;
}

.ms-strength-bars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}

.ms-strength-bars span {
    height: 5px;
    border-radius: 20px;
    background: #e4e4e7;
}

.ms-strength-bars span.active {
    background: #e11d48;
}

.ms-strength-row b {
    color: #e11d48;
    font-size: 13px;
}

.ms-main-btn {
    width: 100%;
    min-height: 64px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, #c80d48, #97052f);
    color: #ffffff;
    font-size: 19px;
    font-weight: 950;
    cursor: pointer;
    display: inline-flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 35px rgba(179, 13, 63, 0.23);
    transition: 0.25s ease;
}

.ms-main-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 45px rgba(179, 13, 63, 0.30);
}

.ms-main-btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

.ms-btn-loader {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.5);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: msSpin .8s linear infinite;
}

@keyframes msSpin {
    to {
        transform: rotate(360deg);
    }
}

.ms-bottom-trust {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.ms-bottom-trust div {
    border-right: 1px solid #e5e7eb;
    padding-right: 14px;
}

.ms-bottom-trust div:last-child {
    border-right: 0;
}

.ms-bottom-trust strong {
    display: block;
    color: #111827;
    font-size: 13px;
    margin-bottom: 4px;
}

.ms-bottom-trust span {
    display: block;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.35;
}

.ms-message {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 850;
}

.ms-message.success {
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.ms-message.error {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.ms-back-signup {
    margin-top: 18px;
    width: 100%;
}

.ms-logged-card {
    width: min(580px, 100%);
    margin: 80px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 25px 80px rgba(90, 23, 32, 0.12);
}

.ms-logged-card h2 {
    margin: 0 0 10px;
    color: #111827;
}

.ms-logged-card p {
    color: #6b7280;
}

.ms-logged-card a {
    display: inline-flex;
    min-height: 50px;
    padding: 0 24px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #b30d3f;
    color: #ffffff;
    text-decoration: none;
    font-weight: 900;
}

@media (max-width: 1100px) {
    .ms-auth-layout {
        grid-template-columns: 1fr;
    }

    .ms-auth-left {
        padding: 20px 0;
    }

    .ms-logo {
        margin-bottom: 34px;
    }

    .ms-hero-visual {
        min-height: 220px;
    }
}

@media (max-width: 760px) {
    .ms-account-page {
        padding: 16px;
    }

    .ms-form-card {
        padding: 24px;
        border-radius: 22px;
    }

    .ms-gender-grid,
    .ms-bottom-trust {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ms-dob-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ms-left-content h1 {
        font-size: 34px;
    }

    .ms-bottom-trust div {
        border-right: 0;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 12px;
    }

    .ms-bottom-trust div:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 520px) {
    .ms-form-card {
        padding: 18px;
    }

    .ms-form-heading h2 {
        font-size: 27px;
    }

    .ms-phone-wrap {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ms-phone-wrap select {
        width: 100%;
        border-right: 0 !important;
        border-bottom: 1px solid #e5e7eb !important;
    }

    .ms-main-btn {
        min-height: 58px;
        font-size: 17px;
    }
}


.ms-form-card {
    max-width: 760px;
    margin-left: auto;
}

.ms-phone-wrap select {
    appearance: auto !important;
    -webkit-appearance: menulist !important;
}

.ms-phone-wrap input::-webkit-outer-spin-button,
.ms-phone-wrap input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ms-main-btn {
    color: #ffffff !important;
}

.ms-back-signup:hover,
.ms-login-box button:hover {
    background: #b30d3f;
    color: #ffffff;
}

.ms-message {
    position: relative;
    z-index: 5;
}

.ms-age-box.eligible {
    border-color: #10b981 !important;
    background: #ecfdf5 !important;
}

.ms-age-box.eligible span {
    color: #047857 !important;
}

.ms-age-box.not-eligible,
.ms-age-box.warning {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}

.ms-age-box.not-eligible span,
.ms-age-box.warning span {
    color: #b91c1c !important;
}