
.wcma-wrapper {
    width: 100%;
    max-width: 480px;
    margin: 35px auto;
    padding: 12px;
    box-sizing: border-box;
}

.wcma-card {
    background: #ffffff;
    padding: 35px;
    border: 1px solid #e8eaf0;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(20, 25, 50, .08);
}

.wcma-heading {
    text-align: center;
    margin-bottom: 25px;
}

.wcma-heading h2 {
    font-size: 28px;
    font-weight: 750;
    color: #15182b;
    margin: 0 0 9px;
}

.wcma-heading p {
    color: #777e90;
    font-size: 14px;
}

.wcma-tabs {
    display: flex;
    gap: 7px;
    padding: 5px;
    background: #f3f4f8;
    border-radius: 12px;
    margin-bottom: 25px;
}

.wcma-tabs button {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 12px 7px;
    border-radius: 9px;
    background: transparent;
    color: #555c70;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}

.wcma-tabs button.active {
    background: #ffffff;
    color: #5845d6;
    box-shadow: 0 2px 9px rgba(0, 0, 0, .08);
}

.wcma-method label {
    display: block;
    margin: 16px 0 7px;
    font-size: 13px;
    font-weight: 650;
    color: #33394b;
}

.wcma-method input {
    width: 100%;
    min-height: 49px;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #dfe2eb;
    border-radius: 10px;
    background: #ffffff;
    font-size: 15px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.wcma-method input:focus {
    border-color: #6554dc;
    box-shadow: 0 0 0 3px rgba(101, 84, 220, .12);
}

.wcma-method button {
    width: 100%;
    min-height: 49px;
    margin-top: 18px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(120deg, #6554dc, #4334b8);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s, transform .2s;
}

.wcma-method button:hover {
    opacity: .92;
    transform: translateY(-1px);
}

.wcma-method button:disabled {
    opacity: .55;
    cursor: wait;
}

.wcma-message {
    min-height: 22px;
    margin: 18px 0 0;
    text-align: center;
    font-size: 13px;
    color: #555b6c;
}

.wcma-footer {
    text-align: center;
    margin: 20px 0 0;
    font-size: 12px;
    color: #9298a7;
}

.wcma-method[hidden] {
    display: none !important;
}

.wcma-verify-box[hidden] {
    display: none !important;
}

@media (max-width: 480px) {

    .wcma-wrapper {
        margin: 12px auto;
        padding: 8px;
    }

    .wcma-card {
        padding: 23px 18px;
        border-radius: 15px;
    }

    .wcma-heading h2 {
        font-size: 24px;
    }

    .wcma-tabs button {
        font-size: 12px;
        padding: 11px 4px;
    }
}

/* Premium authentication refinements */
.wcma-wrapper { max-width: 510px; padding: 18px; }
.wcma-card {
    position: relative;
    overflow: hidden;
    padding: 38px;
    border: 1px solid #e7e9f2;
    border-radius: 24px;
    background: linear-gradient(180deg, #fff 0%, #fbfbff 100%);
    box-shadow: 0 22px 65px rgba(25, 28, 60, .11);
}
.wcma-card:before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #5546d8, #9b76f6, #5546d8);
}
.wcma-eyebrow {
    display: inline-block;
    margin-bottom: 11px;
    color: #6755d9;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
}
.wcma-heading h2 { letter-spacing: -.8px; }
.wcma-heading p { line-height: 1.6; }
.wcma-tabs { flex-wrap: wrap; background: #f1f1f8; border: 1px solid #ececf4; }
.wcma-tabs button { flex: 1 1 38%; min-height: 42px; transition: .2s ease; }
.wcma-tabs button.active { color: #fff; background: linear-gradient(120deg, #6554dc, #4334b8); box-shadow: 0 5px 14px rgba(82, 65, 195, .22); }
.wcma-section-title { margin: 3px 0 5px; color: #191b2c; font-size: 18px; font-weight: 750; letter-spacing: -.3px; }
.wcma-help { margin: 4px 0 15px; color: #81869a; font-size: 13px; line-height: 1.55; }
.wcma-method label { margin-top: 15px; color: #34384b; }
.wcma-method input { min-height: 51px; border-color: #e1e3ed; border-radius: 12px; background: #fff; }
.wcma-method input:focus { border-color: #7566e5; box-shadow: 0 0 0 4px rgba(101, 84, 220, .10); }
.wcma-method button:not(.wcma-generate) { min-height: 51px; border-radius: 12px; box-shadow: 0 7px 17px rgba(75, 59, 184, .16); }
.wcma-password-wrap { display: flex; align-items: stretch; gap: 8px; }
.wcma-password-wrap input { flex: 1; min-width: 0; }
.wcma-password-wrap .wcma-generate {
    width: auto; min-width: 94px; min-height: 51px; margin-top: 0; padding: 0 13px;
    border: 1px solid #dedaf9; border-radius: 11px; background: #f3f1ff; color: #5545c6;
    font-size: 12px; font-weight: 750; box-shadow: none;
}
.wcma-password-wrap .wcma-generate:hover { background: #eae6ff; transform: none; }
.wcma-forgot-row { display: flex; justify-content: flex-end; margin-top: 11px; }
.wcma-forgot-row a { color: #5b4acb; font-size: 13px; font-weight: 650; text-decoration: none; }
.wcma-forgot-row a:hover { text-decoration: underline; }
.wcma-register-extra { margin-top: 14px; padding: 14px; border: 1px solid #eeeefa; border-radius: 14px; background: #faf9ff; }
.wcma-message { line-height: 1.55; }
.wcma-footer { line-height: 1.5; }
@media (max-width: 480px) {
    .wcma-wrapper { padding: 7px; }
    .wcma-card { padding: 27px 19px; border-radius: 18px; }
    .wcma-tabs button { flex-basis: 42%; }
}

/* v2.3.0: accessible password controls and mobile-first refinements */
.wcma-password-control {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.wcma-password-control > input {
    width: 100%;
    padding-right: 54px !important;
}
.wcma-password-control .wcma-toggle-password {
    position: absolute;
    z-index: 2;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #687087;
    box-shadow: none;
    cursor: pointer;
}
.wcma-password-control .wcma-toggle-password:hover {
    background: #f1efff;
    color: #5545c6;
    transform: translateY(-50%);
    opacity: 1;
}
.wcma-toggle-password svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.wcma-toggle-password .wcma-eye-closed { display: none; }
.wcma-toggle-password[aria-pressed="true"] .wcma-eye-open { display: none; }
.wcma-toggle-password[aria-pressed="true"] .wcma-eye-closed { display: block; }
.wcma-password-wrap {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
}
.wcma-password-wrap .wcma-password-control { flex: 1 1 auto; min-width: 0; }
.wcma-password-wrap .wcma-generate {
    flex: 0 0 auto;
    width: auto;
    min-width: 94px;
    min-height: 49px;
    margin: 0;
    padding: 0 13px;
}
.wcma-tabs button:focus-visible,
.wcma-method button:focus-visible,
.wcma-forgot-row a:focus-visible,
.wcma-toggle-password:focus-visible {
    outline: 3px solid rgba(101, 84, 220, .28);
    outline-offset: 2px;
}
.wcma-method input,
.wcma-method button { -webkit-tap-highlight-color: transparent; }
.wcma-method input { min-width: 0; }
.wcma-message:empty { display: none; }

@media (max-width: 600px) {
    .wcma-wrapper {
        width: 100%;
        max-width: 100%;
        margin: 8px auto;
        padding: 8px;
    }
    .wcma-card {
        width: 100%;
        padding: 25px 18px 21px;
        border-radius: 18px;
        box-shadow: 0 12px 34px rgba(25, 28, 60, .09);
    }
    .wcma-heading { margin-bottom: 20px; }
    .wcma-heading h2 { font-size: clamp(23px, 6vw, 27px); }
    .wcma-heading p { font-size: 13px; }
    .wcma-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        padding: 6px;
        margin-bottom: 21px;
    }
    .wcma-tabs button {
        width: 100%;
        min-height: 46px;
        padding: 10px 6px;
        font-size: 12px;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }
    .wcma-section-title { font-size: 17px; }
    .wcma-help { font-size: 12px; }
    .wcma-method label { margin-top: 14px; font-size: 12px; }
    .wcma-method input { min-height: 49px; padding: 11px 12px; font-size: 16px; }
    .wcma-method button:not(.wcma-generate):not(.wcma-toggle-password) {
        min-height: 49px;
        margin-top: 15px;
        font-size: 14px;
    }
    .wcma-password-wrap { gap: 7px; }
    .wcma-password-wrap .wcma-generate { min-width: 82px; min-height: 49px; padding: 0 9px; font-size: 11px; }
    .wcma-register-extra { padding: 12px; }
    .wcma-footer { font-size: 11px; }
}

@media (max-width: 360px) {
    .wcma-card { padding: 22px 14px 18px; }
    .wcma-tabs button { font-size: 11px; }
    .wcma-password-wrap { flex-wrap: wrap; }
    .wcma-password-wrap .wcma-password-control { flex-basis: 100%; }
    .wcma-password-wrap .wcma-generate { width: 100%; }
}
.wcma-method .wcma-password-control button.wcma-toggle-password {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    box-shadow: none;
}
.wcma-method .wcma-password-control button.wcma-toggle-password:hover {
    margin: 0;
    box-shadow: none;
}
@media (max-width: 600px) {
    .wcma-method .wcma-password-control button.wcma-toggle-password {
        width: 40px;
        min-height: 40px;
        height: 40px;
        margin: 0;
    }
}


/* v2.3.1: configurable default country calling code */
.wcma-phone-control {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}
.wcma-phone-control .wcma-country-prefix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 62px;
    padding: 0 12px;
    border: 1px solid #e1e3ed;
    border-right: 0;
    border-radius: 12px 0 0 12px;
    background: #f5f5fb;
    color: #45415f;
    font-size: 15px;
    font-weight: 700;
}
.wcma-phone-control input,
.wcma-method .wcma-phone-control input {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    border-radius: 0 12px 12px 0;
}
.wcma-phone-control:focus-within .wcma-country-prefix {
    border-color: #7566e5;
    box-shadow: 0 0 0 4px rgba(101, 84, 220, .10);
}
@media (max-width: 600px) {
    .wcma-phone-control .wcma-country-prefix { min-width: 58px; padding: 0 10px; }
}


/* v2.3.1 CSS-only mobile layout fix: keep Create Account tab full-width */
@media (max-width: 600px) {
    .wcma-wrapper,
    .wcma-card,
    .wcma-tabs,
    .wcma-tabs button {
        box-sizing: border-box;
    }

    .wcma-wrapper {
        width: 100%;
        max-width: 510px;
        margin-left: auto;
        margin-right: auto;
    }

    .wcma-card {
        width: 100%;
        min-width: 0;
    }

    .wcma-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }

    /* Third tab (Create Account) occupies the complete next row. */
    .wcma-tabs button[data-method="register"] {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
        min-height: 46px;
        padding: 11px 12px;
        white-space: normal;
        overflow: visible;
        overflow-wrap: anywhere;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 360px) {
    .wcma-tabs {
        grid-template-columns: minmax(0, 1fr);
    }

    .wcma-tabs button[data-method="register"] {
        grid-column: 1;
    }
}
