/* M5 REGISTER v1.0.1: parent dialog only, never changes phpBB form fields. */
.m5reg-overlay[hidden]{display:none!important}
.m5reg-overlay{position:fixed;inset:0;z-index:2147482000;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(5,20,43,.73);backdrop-filter:blur(5px);box-sizing:border-box}
.m5reg-dialog{display:flex;flex-direction:column;width:min(640px,100%);max-height:min(880px,95dvh);background:#fff;border:1px solid #d3e3f1;border-radius:22px;box-shadow:0 25px 75px rgba(0,23,53,.38);overflow:hidden;color:#173f68;outline:none}
.m5reg-top{display:flex;align-items:center;gap:13px;padding:19px 21px;background:linear-gradient(115deg,#0d3156,#155c9a);color:#fff;flex-shrink:0}
.m5reg-heading-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:13px;background:rgba(255,255,255,.14);font-size:25px;flex:0 0 46px}
.m5reg-heading{min-width:0;flex:1}.m5reg-heading h2{font-size:23px;font-weight:800;line-height:1.2;margin:0;color:#fff}.m5reg-heading p{font-size:13px;margin:4px 0 0;color:#d7edff;line-height:1.35}
.m5reg-close{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border:1px solid rgba(255,255,255,.25);border-radius:12px;background:rgba(255,255,255,.13);color:#fff;cursor:pointer;font-size:27px;line-height:1}
.m5reg-close:hover,.m5reg-close:focus-visible{background:rgba(255,255,255,.25);outline:2px solid #fff;outline-offset:1px}
.m5reg-frame-area{position:relative;flex:1 1 auto;min-height:250px;overflow:auto;background:#fff}
#m5reg-frame{display:block;width:100%;height:min(650px,68dvh);min-height:330px;border:0;background:#fff}
.m5reg-loading{position:absolute;inset:0;z-index:1;display:grid;place-items:center;padding:24px;text-align:center;color:#51718f;background:#fff;pointer-events:none}
.m5reg-loading[hidden]{display:none!important}
body.m5reg-locked{overflow:hidden!important}
#m5p-register-open{display:inline-flex!important;align-items:center;justify-content:center;margin:8px 0 0 9px;min-height:42px;padding:8px 19px;border-radius:10px;background:#20b85a!important;color:#fff!important;font-weight:800;text-decoration:none;box-sizing:border-box}
#m5p-register-open:hover{background:#189c4a!important}
@media(max-width:620px){.m5reg-overlay{padding:7px;align-items:stretch}.m5reg-dialog{max-height:calc(100dvh - 14px);border-radius:15px}.m5reg-top{padding:13px 14px;gap:10px}.m5reg-heading-icon{width:39px;height:39px;flex-basis:39px;font-size:20px}.m5reg-heading h2{font-size:19px}.m5reg-heading p{font-size:11px}.m5reg-close{width:34px;height:34px;flex-basis:34px}.m5reg-frame-area{flex:1;min-height:0}#m5reg-frame{height:calc(100dvh - 135px);min-height:0}#m5p-register-open{margin-left:0}}

.m5reg-frame-error[hidden]{display:none!important}
.m5reg-frame-error{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:28px;background:#fff;color:#a52b31;line-height:1.65;font-size:14px}
