/*==================================================
FORCE FULL-BLEED BACKGROUND (break out of bootstrap container)
==================================================*/

body.mx-login-view{
    overflow-x:hidden;
}
body.mx-login-view .woocommerce{
    display:block !important;
    grid-template-columns:unset !important;
    padding:0 !important;
    gap:0 !important;
    background:transparent !important;
}

.mx-auth-page{
    width:100vw;
    margin-left:calc(50% - 50vw);
    margin-right:calc(50% - 50vw);
    min-height:80vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:80px 20px;
    position:relative;
    overflow:hidden;
    background:#ffffff;
    box-sizing:border-box;
}
/* Ambient glow orbs on page */
.mx-auth-page::before,
.mx-auth-page::after{
    content:"";
    position:absolute;
    border-radius:50%;
    filter:blur(90px);
    opacity:.4;
    pointer-events:none;
    z-index:0;
}
.mx-auth-page::before{
    width:420px;
    height:420px;
    background:#ffffff;
    top:-140px;
    left:-140px;
    animation:mxFloat1 10s ease-in-out infinite;
}
.mx-auth-page::after{
    width:380px;
    height:380px;
    background:#ffffff;
    bottom:-140px;
    right:-120px;
    animation:mxFloat2 12s ease-in-out infinite;
}

@keyframes mxFloat1{
    0%,100%{ transform:translate(0,0); }
    50%{ transform:translate(40px,30px); }
}

@keyframes mxFloat2{
    0%,100%{ transform:translate(0,0); }
    50%{ transform:translate(-30px,-40px); }
}
/*==========================
CARD
==========================*/
.mx-auth-box{
    position:relative;
    z-index:2;
    width:100%;
    max-width:440px;
    background:#141414 !important;
    border:1px solid rgba(255,255,255,.08);
    border-radius:24px;
    padding:44px 38px;
    box-shadow:0 30px 80px rgba(0,0,0,.35);
    opacity:0;
    transform:translateY(24px);
    animation:mxCardIn .7s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes mxCardIn{
    to{ opacity:1; transform:translateY(0); }
}

.mx-auth-box h2{
    color:#ffffff !important;
    font-size:26px;
    font-weight:800;
    margin-bottom:8px;
    letter-spacing:-.3px;
}

.mx-auth-box > p{
    color:rgba(255,255,255,.6) !important;
    font-size:14px;
    margin-bottom:28px;
    line-height:1.5;
}

.mx-auth-box label{
    display:block;
    color:rgba(255,255,255,.75) !important;
    font-size:12px;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:.6px;
    margin-bottom:10px;
}

/*==========================
EMAIL INPUT — with floating colorful squares
==========================*/

.mx-input-wrap{
    position:relative;
    overflow:hidden;
    border-radius:14px;
}

.mx-input-wrap input[type="email"]{
    position:relative;
    z-index:2;
    width:100% !important;
    height:54px;
    background:rgba(255,255,255,.06) !important;
    border:1px solid rgba(255,255,255,.12) !important;
    border-radius:14px;
    padding:0 18px;
    color:#ffffff !important;
    font-size:15px;
    transition:.25s;
    box-sizing:border-box;
}

.mx-input-wrap input[type="email"]::placeholder{
    color:rgba(255,255,255,.35) !important;
}

.mx-input-wrap input[type="email"]:focus{
    outline:none;
    border-color:#ffd700 !important;
    box-shadow:0 0 0 4px rgba(255,215,0,.18);
    background:rgba(255,255,255,.08) !important;
}

/* Floating squares — injected by JS */

.mx-pixel{
    position:absolute;
    bottom:-30px;
    border-radius:5px;
    z-index:1;
    pointer-events:none;
    animation:mxPixelRise linear infinite;
}

@keyframes mxPixelRise{
    0%{
        transform:translateY(0) rotate(0deg);
        opacity:0;
    }
    15%{
        opacity:.55;
    }
    85%{
        opacity:.35;
    }
    100%{
        transform:translateY(-90px) rotate(45deg);
        opacity:0;
    }
}

/*==========================
BUTTON — shimmer + lift
==========================*/

.mx-auth-btn{
    position:relative;
    width:100%;
    height:54px;
    margin-top:22px;
    border:none;
    border-radius:14px;
    background:#ffd700 !important;
    color:#111 !important;
    font-size:15px;
    font-weight:700;
    cursor:pointer;
    overflow:hidden;
    transition:transform .2s ease, box-shadow .2s ease;
}

.mx-auth-btn::after{
    content:"";
    position:absolute;
    top:0;
    left:-60%;
    width:40%;
    height:100%;
    background:linear-gradient(120deg, transparent, rgba(255,255,255,.55), transparent);
    transform:skewX(-20deg);
    animation:mxShimmer 3s ease-in-out infinite;
}

@keyframes mxShimmer{
    0%{ left:-60%; }
    50%{ left:130%; }
    100%{ left:130%; }
}

.mx-auth-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 30px rgba(255,215,0,.35);
}

.mx-auth-btn:active{ transform:translateY(0); }

.mx-auth-btn:disabled{
    opacity:.6;
    cursor:not-allowed;
    transform:none;
}

.mx-auth-btn .mx-btn-text{
    position:relative;
    z-index:2;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
}

.mx-auth-btn .mx-spinner{
    width:16px;
    height:16px;
    border:2px solid rgba(17,17,17,.25);
    border-top-color:#111;
    border-radius:50%;
    display:none;
    animation:mxSpin .6s linear infinite;
}

.mx-auth-btn.is-loading .mx-spinner{ display:inline-block; }
.mx-auth-btn.is-loading .mx-btn-label{ opacity:.7; }

@keyframes mxSpin{ to{ transform:rotate(360deg); } }

/*==========================
OTP BOXES
==========================*/

.mx-otp-boxes{
    display:flex;
    gap:10px;
    justify-content:space-between;
    margin-bottom:6px;
}

.mx-otp-boxes input{
    width:100%;
    aspect-ratio:1/1;
    max-width:56px;
    background:rgba(255,255,255,.06) !important;
    border:1px solid rgba(255,255,255,.12) !important;
    border-radius:12px;
    text-align:center;
    color:#ffffff !important;
    font-size:20px;
    font-weight:700;
    transition:.2s;
    box-sizing:border-box;
}

.mx-otp-boxes input:focus{
    outline:none;
    border-color:#ffd700 !important;
    box-shadow:0 0 0 4px rgba(255,215,0,.18);
    background:rgba(255,255,255,.09) !important;
}

.mx-otp-boxes input.mx-filled{
    border-color:rgba(255,215,0,.55) !important;
}

.mx-shake{ animation:mxShake .4s; }

@keyframes mxShake{
    0%,100%{ transform:translateX(0); }
    20%{ transform:translateX(-8px); }
    40%{ transform:translateX(8px); }
    60%{ transform:translateX(-6px); }
    80%{ transform:translateX(6px); }
}

/*==========================
MESSAGE
==========================*/

#mx-auth-message{
    margin-top:18px;
    min-height:20px;
}

#mx-auth-message p{
    margin:0 !important;
    font-size:13px;
    font-weight:600;
    padding:10px 14px;
    border-radius:10px;
    animation:mxMsgIn .3s ease;
}

#mx-auth-message p[style*="green"]{
    background:rgba(70,200,120,.14) !important;
    color:#5fd88a !important;
}

#mx-auth-message p[style*="red"]{
    background:rgba(255,80,80,.14) !important;
    color:#ff7a7a !important;
}

@keyframes mxMsgIn{
    from{ opacity:0; transform:translateY(-6px); }
    to{ opacity:1; transform:translateY(0); }
}

#mx-verify-otp-form{
    animation:mxCardIn .5s cubic-bezier(.22,1,.36,1) forwards;
}

/*==================================================
KILL MOBILE TAP-HIGHLIGHT FLASH
==================================================*/

.mx-auth-page,
.mx-auth-page *,
.mx-auth-box,
.mx-auth-box *{
    -webkit-tap-highlight-color:transparent;
    tap-highlight-color:transparent;
}

.mx-input-wrap input[type="email"],
.mx-otp-boxes input,
.mx-auth-btn{
    -webkit-tap-highlight-color:transparent;
    outline:none;
}

/* Prevent iOS/Android auto-zoom on input focus (also stops layout jump) */

.mx-input-wrap input[type="email"],
.mx-otp-boxes input{
    font-size:16px;
}

/*==========================
RESPONSIVE
==========================*/

@media(max-width:480px){
    .mx-auth-box{ padding:32px 24px; border-radius:20px; }
    .mx-auth-box h2{ font-size:22px; }
    .mx-otp-boxes input{ font-size:18px; }
    .mx-input-wrap input[type="email"]{ font-size:16px !important; }
}