/* Membership registration — integrated into the live public theme */
body.md-registration-page{background:var(--md-site-body-bg,#f5f8f8);color:var(--md-site-content-text,#233343)}
body.md-registration-page #center{width:min(1200px,calc(100% - 36px))!important;max-width:1200px!important;min-width:0!important;margin:24px auto 40px!important;padding:0!important;display:block!important;box-sizing:border-box}
body.md-registration-page #center>.site,body.md-registration-page #center .site-content,body.md-registration-page #center .md-maincol{display:block!important;width:100%!important;min-width:0!important;max-width:none!important;float:none!important;grid-column:1/-1!important;padding:0!important;margin:0!important;box-sizing:border-box}
body.md-registration-page #center .md-sidebar{display:none!important}
.md-reg-breadcrumb{display:flex;align-items:center;gap:8px;margin:14px auto 18px;max-width:1160px;color:var(--md-site-content-text,#556575);font-size:13px}
.md-reg-breadcrumb a{color:var(--md-site-accent,#078573);font-weight:700;text-decoration:none}
.md-reg-shell{width:100%;max-width:1160px;margin:auto;direction:rtl;text-align:right;font-size:15px;line-height:1.75}
.md-reg-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,.65fr);gap:25px;align-items:center;padding:30px 36px;border-radius:20px;margin:0 0 20px;background:linear-gradient(118deg,var(--md-site-accent,#087c70),#145e54);color:#fff;box-shadow:0 12px 35px rgba(15,85,79,.14);overflow:hidden}
.md-reg-hero-kicker{display:inline-flex;align-items:center;gap:8px;margin-bottom:8px;font-size:12px;letter-spacing:.3px;color:#d3fff0;font-weight:800}
.md-reg-hero h1{font-size:clamp(24px,2.4vw,34px)!important;color:#fff!important;margin:0 0 10px!important;line-height:1.4;font-weight:900}
.md-reg-hero p{font-size:15px;line-height:1.9;color:#effff8;max-width:700px;margin:0}
.md-reg-hero-aside{background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.24);border-radius:14px;padding:17px 20px;backdrop-filter:blur(4px)}
.md-reg-hero-aside strong{font-size:16px;display:block;margin:0 0 8px;color:#fff}
.md-reg-hero-aside span{display:block;font-size:13px;line-height:1.85;color:#f2fffa}
.md-reg-shell form[name="user.login"]{width:100%;max-width:100%;margin:0;display:block}
.md-reg-card{border-radius:18px;border:1px solid var(--md-site-content-border,#dee8e6);background:var(--md-site-content-bg,#fff);box-shadow:0 7px 25px rgba(19,52,54,.055);padding:25px 28px;margin:0 0 18px;box-sizing:border-box;min-width:0}
.md-reg-section-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:15px;flex-wrap:wrap}
.md-reg-section-heading h2{font-size:20px!important;color:var(--md-site-content-title,#142d33)!important;margin:0!important;font-weight:900}
.md-reg-section-heading p{font-size:13px;color:var(--md-site-content-text,#64748b);margin:0}
.md-reg-fields-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 22px;align-items:start}
.md-reg-fields-grid>.form-unit,.md-reg-fields-grid>[data-register-role],.md-reg-fields-grid>.md-reg-field-wrap{min-width:0;width:100%;max-width:100%;margin:0!important;float:none!important;clear:none!important;box-sizing:border-box}
.md-reg-fields-grid>[data-register-role]>.form-unit{margin:0!important;width:100%}
.md-reg-fields-grid>.form-unit>.form-unit-title,.md-reg-fields-grid>.form-unit>.form-unit-textarea-title,.md-reg-fields-grid>[data-register-role] .form-unit-title{display:block!important;float:none!important;text-align:right!important;width:100%!important;max-width:100%!important;line-height:1.5;font-size:13px;font-weight:800;color:var(--md-site-content-title,#294153);margin:0 0 8px!important;padding:0!important;box-sizing:border-box}
.md-reg-fields-grid .form-unit-field{width:100%!important;max-width:100%!important;float:none!important;display:block!important;margin:0!important;padding:0!important;box-sizing:border-box}
.md-reg-fields-grid input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),.md-reg-fields-grid select,.md-reg-fields-grid textarea{display:block!important;width:100%!important;max-width:100%!important;min-height:48px;box-sizing:border-box!important;background:var(--md-site-content-bg,#fff)!important;border:1px solid #cddbdc!important;border-radius:11px!important;padding:10px 14px!important;color:var(--md-site-content-text,#22313f)!important;font:inherit!important;font-size:15px!important;outline-offset:2px;box-shadow:none!important}
.md-reg-fields-grid :is(input,select,textarea):focus{border-color:var(--md-site-accent,#087c70)!important;box-shadow:0 0 0 3px rgba(6,128,110,.13)!important;outline:0!important}
.md-reg-fields-grid textarea{min-height:100px!important;resize:vertical}
.md-reg-fields-grid input[dir="ltr"]{direction:ltr;text-align:left}
.md-reg-fields-grid>.form-unit:has(textarea),.md-reg-fields-grid>.md-reg-field-full{grid-column:1/-1}
.md-reg-fields-grid .form-unit .content{margin:0}
.md-reg-fields-grid #whatsapp-register-hint{font-size:12px!important;color:#61717d!important;margin:0!important;padding:0 1px}
.md-reg-fields-grid .form-unit:has(#whatsapp-register-hint){align-self:center}
.md-reg-shell .reg-roles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0;direction:rtl}
.md-reg-shell .reg-role{position:relative;cursor:pointer;display:flex;flex-direction:column;gap:4px;min-height:135px;border:1.5px solid #d4e1e3;border-radius:15px;padding:22px 22px 17px;background:var(--md-site-content-bg,#fff);transition:background .17s,border-color .17s,box-shadow .17s;box-sizing:border-box}
.md-reg-shell .reg-role:hover{border-color:var(--md-site-accent,#087969);box-shadow:0 7px 22px rgba(15,85,79,.075)}
.md-reg-shell .reg-role:has(input:checked){background:#edf9f4;border:2px solid var(--md-site-accent,#078573);box-shadow:0 5px 18px rgba(6,116,96,.09)}
.md-reg-shell .reg-role input[type="radio"]{position:absolute;left:20px;top:20px;width:19px;height:19px;accent-color:var(--md-site-accent,#087969)}
.md-reg-shell .reg-role strong{font-size:19px;color:var(--md-site-content-title,#1f3340);font-weight:900;margin-bottom:4px}
.md-reg-shell .reg-role small{display:block;font-size:13px;color:#576b76;line-height:1.8}
.md-reg-shell .reg-role:has(input:checked) strong{color:#086c5a}
.md-reg-shell .reg-role-fields{margin:0 0 18px;padding:24px 28px;border:1px solid #d9e6e5;border-radius:18px;background:var(--md-site-content-bg,#fff);box-shadow:0 6px 22px rgba(24,74,72,.05)}
.md-reg-shell [hidden],.md-registration-page [hidden]{display:none!important}
.md-reg-shell .reg-role-fields h3{font-size:20px;color:var(--md-site-content-title,#203644);margin:0 0 8px;font-weight:900}
.md-reg-shell .reg-role-fields p{font-size:14px;color:#5e6d7a;line-height:1.85;margin:5px 0 14px}
.md-reg-shell .reg-wizard-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:12px;margin:0 0 22px;color:#64748b}
.md-reg-shell .reg-wizard-steps span{display:block;text-align:center;padding:12px;border-radius:11px;background:#f2f5f6;border:1px solid #e2e9ea;font-size:14px;font-weight:700}
.md-reg-shell .reg-wizard-steps span.is-active{color:#056c59;border-color:#8cd1ba;background:#ecfaf4;font-weight:900}
.md-reg-shell .reg-teacher-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin:15px 0;direction:rtl}
.md-reg-shell .reg-teacher-grid label{display:flex;align-items:center;gap:10px;min-width:0;padding:13px 12px;margin:0;min-height:50px;background:#fff;border:1px solid #dae5e6;border-radius:11px;cursor:pointer;line-height:1.4;font-size:14px;box-sizing:border-box;transition:.12s}
.md-reg-shell .reg-teacher-grid label:has(input:checked){background:#e7f8ee;color:#04634c;border:1.5px solid #078573;font-weight:900}
.md-reg-shell .reg-teacher-grid label:has(input:disabled):not(:has(input:checked)){opacity:.45;cursor:not-allowed}
.md-reg-shell .reg-teacher-grid input[type="checkbox"]{flex:0 0 18px;width:18px;height:18px;accent-color:var(--md-site-accent,#087969);margin:0}
.md-reg-shell [data-teacher-path-root]{padding:17px 20px;margin:14px 0;border-radius:14px;border:1px solid #b7ded1;background:#f2faf6}
.md-reg-shell [data-teacher-path-root] h4{font-size:17px;color:#155b4c;margin:0 0 10px}
.md-reg-shell .reg-wizard-count{display:inline-block;padding:6px 12px;background:#e9f7ef;border-radius:9px;color:#09684e;font-weight:900}
.md-reg-shell .reg-wizard-error{color:#ad2630;min-height:18px;font-size:13px}
.md-reg-shell .reg-wizard-actions{display:flex;justify-content:space-between;gap:12px;margin:22px 0 0}
.md-reg-shell .reg-wizard-actions button,.md-reg-submit button,.md-reg-shell .membership-review-actions button{min-height:46px;padding:10px 25px;border-radius:11px;border:1px solid var(--md-site-accent,#087969);font-size:14px;font-weight:900;cursor:pointer}
.md-reg-shell .reg-wizard-next,.md-reg-shell .membership-review-confirm,.md-reg-submit button[type="submit"]{background:var(--md-site-accent,#087969)!important;color:#fff!important}
.md-reg-shell .reg-wizard-back{background:#fff!important;color:var(--md-site-accent,#087969)!important}
.md-reg-shell .lsr-scope{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:end}
.md-reg-shell .lsr-scope label{margin:0;display:grid;gap:7px;color:#263a42;font-size:14px;font-weight:800}
.md-reg-shell .lsr-scope select{min-height:48px;border-radius:10px;border:1px solid #cddbdc;margin:0!important;padding:8px 12px;background:#fff;width:100%;font:inherit}
.md-reg-submit{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:18px 5px 30px}
.md-reg-submit .form-unit.form-submit-unit{padding:0;margin:0!important}
.md-reg-submit .auth-links{display:flex;gap:12px;margin:0}
.md-reg-submit .auth-links a{font-size:14px;color:var(--md-site-accent,#087969);font-weight:900;text-decoration:none}
.md-reg-shell .membership-review{background:#fff;border:1px solid #dce7e7;border-radius:16px;padding:25px}
.md-reg-shell .membership-review-data{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.md-reg-shell .membership-review-data div{padding:12px 15px;background:#f3f7f8;border-radius:11px;overflow-wrap:anywhere}
.md-reg-shell .membership-review-data b{display:block;font-size:12px;color:#71808d;margin-bottom:6px}
.md-reg-shell .membership-review-actions{display:flex;flex-wrap:wrap;gap:14px;margin:20px 0 0}
.md-reg-shell .membership-review-actions form{flex:1 1 220px}
.md-reg-shell .membership-review-actions button{width:100%}
.md-reg-fallback-footer{display:flex;justify-content:center;flex-wrap:wrap;gap:20px;padding:18px}
.md-reg-fallback-footer a{color:inherit;text-decoration:none;font-weight:700}
/* Standalone LMS teacher registration is already in the public layout; match its card proportions. */
body .ltr-wrap{width:min(1100px,calc(100% - 30px));max-width:1100px;margin:20px auto 42px}
body .ltr-wrap .ltr-card{box-shadow:0 7px 25px rgba(19,52,54,.065);border-radius:17px;padding:26px 30px}
@media(max-width:960px){.md-reg-shell .reg-teacher-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.md-reg-hero{grid-template-columns:1fr}.md-reg-hero-aside{display:none}}
@media(max-width:700px){body.md-registration-page #center{width:calc(100% - 24px)!important;margin:14px auto 25px!important}.md-reg-hero{padding:22px 20px;border-radius:15px}.md-reg-card,.md-reg-shell .reg-role-fields{padding:20px 16px;border-radius:14px}.md-reg-shell .reg-roles{grid-template-columns:1fr;gap:9px}.md-reg-shell .reg-role{min-height:0;padding:13px 46px 13px 14px}.md-reg-shell .reg-role input[type="radio"]{right:14px;left:auto;top:21px}.md-reg-shell .reg-teacher-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.md-reg-fields-grid,.md-reg-shell .lsr-scope{grid-template-columns:1fr}.md-reg-shell .membership-review-data{grid-template-columns:1fr}.md-reg-submit{flex-direction:column;align-items:stretch}.md-reg-submit button{width:100%}}
@media(max-width:380px){.md-reg-shell .reg-teacher-grid{grid-template-columns:1fr}.md-reg-shell .reg-teacher-grid label{min-height:42px}}
/* Neutralize the legacy auth form-unit skins inside the modern two-column grid. */
.md-reg-shell .md-reg-fields-grid>.form-unit,
.md-reg-shell .md-reg-fields-grid>[data-register-role] .form-unit,
.md-reg-shell .md-reg-fields-grid .form-unit-field,
.md-reg-shell .md-reg-fields-grid .form-unit .content{background:transparent!important;background-color:transparent!important;box-shadow:none!important;border:0!important;border-radius:0!important;outline:0!important}
.md-reg-shell .md-reg-fields-grid>.form-unit,
.md-reg-shell .md-reg-fields-grid>[data-register-role] .form-unit{padding:0!important}
.md-reg-shell .md-reg-fields-grid .form-unit-title,
.md-reg-shell .md-reg-fields-grid .form-unit-textarea-title{background:transparent!important;background-color:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;height:auto!important;min-height:0!important}
.md-reg-shell .md-reg-hero p,.md-reg-shell .md-reg-hero-aside span{color:#effff8!important}
.md-reg-shell .md-reg-hero-kicker{color:#d3fff0!important}
.ltr-wrap .md-reg-hero p{color:#effff8!important}
.ltr-wrap .md-reg-hero-kicker{color:#d3fff0!important}
.ltr-wrap .ltr-card>h2:first-child{font-size:23px;font-weight:900;color:var(--md-site-content-title,#183641)}
.ltr-wrap .ltr-choice{transition:background .15s,border-color .15s,box-shadow .15s}
.ltr-wrap .ltr-choice:has(input:checked){background:#e7f8ee!important;border-color:var(--md-site-accent,#087969)!important;color:#075a48}
.ltr-wrap .ltr-btn{background:var(--md-site-accent,#087969);border-radius:11px;padding:12px 22px}
/* School profile is shared by both membership signup and the LMS teacher hub. */
.md-teacher-institution{direction:rtl;min-width:0;margin:10px 0 18px}
.md-teacher-inst-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px;align-items:end}
.md-teacher-inst-fields>label{display:grid;gap:7px;min-width:0;font-size:14px;font-weight:800;color:var(--md-site-content-title,#253b46)}
.md-teacher-inst-fields>label[hidden]{display:none!important}
.md-teacher-inst-fields>label>span{display:block}
.md-teacher-inst-fields em{font-style:normal;color:#b32432}
.md-teacher-inst-fields select,.md-teacher-inst-fields input{display:block;width:100%;max-width:100%;height:49px;min-height:49px;box-sizing:border-box;border:1px solid #cddbdc;border-radius:11px;padding:10px 13px;background:#fff;color:var(--md-site-content-text,#20343a);font:inherit;font-weight:500!important;font-size:15px!important}
.md-teacher-inst-fields input:focus,.md-teacher-inst-fields select:focus{outline:2px solid rgba(8,121,105,.32);border-color:var(--md-site-accent,#087969)}
.md-teacher-inst-hint{margin:12px 0 2px!important;color:#56716a;font-size:13px!important;line-height:1.8}
.md-reg-institution-card{margin-bottom:18px}
.ltr-wrap .md-teacher-institution-card{padding:18px 20px;border:1px solid #d9e6e5;border-radius:14px;background:#fafdfb}
.ltr-wrap .md-teacher-institution-card h2{margin:0 0 16px;color:#24463e;font-size:20px}
@media(max-width:700px){.md-teacher-inst-fields{grid-template-columns:1fr;gap:12px}}

/* Strict teacher sequence: personal identity -> grade/pathway -> subjects. */
.md-reg-shell .reg-teacher-progress{grid-template-columns:repeat(3,minmax(0,1fr));margin:0 0 17px}
.md-reg-shell #reg-teacher-personal-panel{display:block;min-width:0}
.md-reg-shell #reg-teacher-personal-panel[hidden],.md-reg-shell #reg-teacher-wizard[hidden],.md-reg-shell #reg-submit-actions[hidden]{display:none!important}
.md-reg-shell .reg-teacher-personal-actions{margin:5px 0 24px;justify-content:flex-start}
.md-reg-shell #reg-teacher-personal-error{font-weight:700;margin:0 0 9px}
@media(max-width:700px){.md-reg-shell .reg-teacher-progress{grid-template-columns:1fr;gap:6px}.md-reg-shell .reg-teacher-progress span{padding:7px 12px;text-align:right}}

/* Standalone teacher application: identity first, then teaching scope. */
.ltr-wrap .ltr-personal-panel{padding:20px 22px;border:1px solid #dbe7e6;border-radius:15px;background:#f8fbfa;margin:14px 0 20px}
.ltr-wrap .ltr-personal-panel[hidden],.ltr-wrap #ltr-scope-submit[hidden],.ltr-wrap #ltr-level-back[hidden]{display:none!important}
.ltr-wrap .ltr-personal-panel h2{font-size:20px;margin:0 0 8px}
.ltr-wrap .ltr-personal-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px 18px;margin:16px 0}
.ltr-wrap .ltr-personal-fields>label{display:grid;gap:7px;font-size:14px;font-weight:700;min-width:0}
.ltr-wrap .ltr-personal-fields :is(input,select){width:100%;min-height:44px;max-width:100%;padding:9px 12px;border:1px solid #ccdedd;border-radius:10px;background:#fff;color:#1b3334;font:inherit;box-sizing:border-box}
.ltr-wrap .ltr-personal-fields input[readonly]{background:#f0f4f4}
.ltr-wrap .ltr-wizard-steps [hidden]{display:none!important}

/* Completed three-step registration, terminal action only in subjects step */
.md-reg-shell .reg-wizard-finish{min-width:220px;margin-inline-start:auto;background:var(--md-site-accent,#087969)!important;color:white!important;border-color:var(--md-site-accent,#087969)!important}
.md-reg-shell .reg-wizard-actions{align-items:center;flex-wrap:wrap}
@media(max-width:480px){.md-reg-shell .reg-wizard-actions button{flex:1 1 100%}.md-reg-shell .reg-wizard-finish{min-width:0}}
