/* V125.5: controls inside same-origin authentication iframe.
   Only when ?embed=1. Existing submission, OTP, validators, endpoints untouched. */
html:has(body.xp-auth-embedded),body.xp-auth-embedded{min-height:0!important;height:auto!important;margin:0!important;overflow-x:hidden!important;background:#0b2139!important;color:#eef8ff!important}
body.xp-auth-embedded{padding:0 0 3px!important;font-family:'Kanit',sans-serif!important}
body.xp-auth-embedded .topbar,body.xp-auth-embedded .bottom-nav,body.xp-auth-embedded .lux-auth-story,body.xp-auth-embedded .lux-auth-atmosphere,body.xp-auth-embedded .hero-logo,body.xp-auth-embedded .brand-large,body.xp-auth-embedded .page-title,body.xp-auth-embedded .lux-form-security,body.xp-auth-embedded .lux-auth-subtitle,body.xp-auth-embedded .divider,body.xp-auth-embedded .secondary,body.xp-auth-embedded .auth-switch,body.xp-auth-embedded .support{display:none!important}
body.xp-auth-embedded .lux-auth-layout,body.xp-auth-embedded .lux-register-layout,body.xp-auth-embedded .auth-wrap,body.xp-auth-embedded .lux-register-main,body.xp-auth-embedded .register-shell{display:block!important;width:100%!important;max-width:none!important;min-height:0!important;height:auto!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
body.xp-auth-embedded .auth-card,body.xp-auth-embedded .stage-card{display:block!important;width:100%!important;max-width:none!important;min-height:0!important;height:auto!important;margin:0!important;padding:4px 20px 14px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
body.xp-auth-embedded .auth-card .title{display:none!important}
body.xp-auth-embedded #loginForm{display:flex;flex-direction:column;gap:12px}
body.xp-auth-embedded .field{margin:0!important}
body.xp-auth-embedded .field>label,body.xp-auth-embedded .field-head label{position:absolute!important;clip-path:inset(50%)!important;width:1px!important;height:1px!important;overflow:hidden!important}
body.xp-auth-embedded .field-head{justify-content:flex-end!important;height:0!important;margin:0!important;overflow:hidden!important}
body.xp-auth-embedded .field-head a{display:none!important}
body.xp-auth-embedded .input-wrap{position:relative!important}
body.xp-auth-embedded .input-wrap input{display:block!important;width:100%!important;height:50px!important;padding:0 45px!important;border:2px solid transparent!important;border-radius:999px!important;outline:none!important;background:#fff!important;color:#14243c!important;font:500 14px 'Kanit',sans-serif!important;box-shadow:0 2px 1px rgba(0,0,0,.05)!important}
body.xp-auth-embedded .input-wrap input::placeholder{color:#8594aa!important;opacity:1!important}
body.xp-auth-embedded .input-wrap input:focus{border-color:#39d46d!important;box-shadow:0 0 0 3px rgba(46,203,106,.16)!important}
body.xp-auth-embedded .input-wrap .ico{position:absolute!important;left:16px!important;top:50%!important;transform:translateY(-50%)!important;color:#687e98!important;font-size:17px!important;z-index:1!important}
body.xp-auth-embedded .toggle-pass{right:12px!important;min-width:33px!important;min-height:33px!important;color:#60768e!important;cursor:pointer!important}
body.xp-auth-embedded .primary{display:block!important;width:100%!important;height:51px!important;min-height:51px!important;margin:2px 0 0!important;border:0!important;border-radius:999px!important;background:linear-gradient(125deg,#2ebd52,#169b45)!important;color:#fff!important;font:700 18px 'Kanit',sans-serif!important;box-shadow:0 10px 23px rgba(21,171,76,.18)!important}
body.xp-auth-embedded .primary:focus-visible{outline:2px solid #aaffbc!important;outline-offset:2px!important}
body.xp-auth-embedded .primary:disabled{opacity:.65!important}
body.xp-auth-embedded .xp-auth-forgot{display:block!important;margin:13px auto 0!important;text-align:center!important;color:#a7bdd0!important;font-size:13px!important;font-weight:600!important;text-decoration:none!important}
body.xp-auth-embedded .xp-auth-forgot:focus-visible{text-decoration:underline!important;color:#48d879!important}
body.xp-auth-embedded #message{font:500 12px/1.5 'Kanit',sans-serif!important;border-radius:12px!important}
/* Registration: preserve all existing multi-step field/OTP/terms behavior. */
body.xp-auth-embedded .register-shell{padding:0!important}
body.xp-auth-embedded .register-shell .steps{display:flex!important;justify-content:center!important;gap:5px!important;margin:2px 0 12px!important;padding:0 17px!important}
body.xp-auth-embedded .register-shell .step{flex:1!important;width:auto!important;min-width:0!important;color:#91abc1!important;font-size:10px!important}
body.xp-auth-embedded .register-shell .step i{width:33px!important;height:33px!important;margin:0 auto 4px!important;border:1px solid #40617a!important;background:#1e3853!important;color:#dae9f6!important}
body.xp-auth-embedded .register-shell .step.active i{background:#21b955!important;border-color:#21b955!important;color:#fff!important}
body.xp-auth-embedded .register-shell .step:not(:last-child):after{top:16px!important;left:calc(50% + 19px)!important;width:calc(100% - 33px)!important;background:#3c5570!important}
body.xp-auth-embedded .register-shell .stage-card{padding:6px 19px 20px!important}
body.xp-auth-embedded #registerStage .-img-container,body.xp-auth-embedded #registerStage .x-step-register{display:none!important}
body.xp-auth-embedded #registerStage .-title,body.xp-auth-embedded #registerStage h1,body.xp-auth-embedded #registerStage h2,body.xp-auth-embedded #registerStage h3{color:#f1faff!important;font-size:15px!important;font-weight:700!important;line-height:1.45!important}
body.xp-auth-embedded #registerStage p,body.xp-auth-embedded #registerStage .-text-message{color:#b6c9d7!important;font-size:12px!important}
body.xp-auth-embedded #registerStage input:not([type="radio"]):not([type="checkbox"]),body.xp-auth-embedded #registerStage select,body.xp-auth-embedded #registerStage textarea,body.xp-auth-embedded #registerStage .selectize-input{min-height:46px!important;border:1px solid #c9d8e5!important;border-radius:14px!important;background:#fff!important;color:#192c40!important;font:500 14px 'Kanit',sans-serif!important}
body.xp-auth-embedded #registerStage input:focus-visible,body.xp-auth-embedded #registerStage select:focus-visible{outline:2px solid #2fcb69!important;outline-offset:1px!important}
body.xp-auth-embedded #registerStage input::placeholder{color:#8b9ca9!important}
body.xp-auth-embedded #registerStage .btn-primary,body.xp-auth-embedded #registerStage .-submit,body.xp-auth-embedded #registerStage button[type="submit"]{min-height:47px!important;padding:8px 15px!important;border:0!important;border-radius:999px!important;background:linear-gradient(120deg,#2fbc52,#159a45)!important;color:white!important;font:700 15px 'Kanit',sans-serif!important;box-shadow:0 8px 20px rgba(23,163,77,.19)!important}
body.xp-auth-embedded #registerStage .x-bank-choices-type .-label{background:#1c3751!important}
body.xp-auth-embedded #registerStage .-already-description,body.xp-auth-embedded #registerStage .alert-user{border-color:#713d38!important;background:#43252c!important;color:#ffd7ce!important}
body.xp-auth-embedded #registerStage .x-form-control,body.xp-auth-embedded #registerStage input{max-width:100%!important}
body.xp-auth-embedded .loading{padding:45px 8px!important;color:#acc3d6!important}
body.xp-auth-embedded .notice{margin-bottom:12px!important}
@media(max-width:385px){body.xp-auth-embedded .auth-card,body.xp-auth-embedded .register-shell .stage-card{padding-left:16px!important;padding-right:16px!important}body.xp-auth-embedded .register-shell .steps{padding-left:12px!important;padding-right:12px!important}}
