/* Modern RTL authentication shell — standalone login, reset and activation routes.
   The main site and account backend remain unchanged. */
:root{--auth-primary:#119e7c;--auth-primary-deep:#087c60;--auth-text:#19342e;--auth-muted:#667e78;--auth-border:#dce9e5;--auth-surface:#fff;--auth-focus:rgba(17,158,124,.13)}
html{min-height:100%;scroll-behavior:smooth}
body.md-auth-screen{margin:0!important;padding:0!important;min-height:100vh!important;min-height:100svh!important;background:#f5faf8!important;color:var(--auth-text)!important;font-family:Tahoma,Arial,sans-serif!important;font-size:15px!important;font-weight:400!important;line-height:1.7!important;direction:rtl!important}
body.md-auth-screen *,body.md-auth-screen *::before,body.md-auth-screen *::after{box-sizing:border-box}
body.md-auth-screen a{color:var(--auth-primary-deep)!important;text-decoration:none;transition:color .15s ease}
body.md-auth-screen a:hover{color:#075640!important}
body.md-auth-screen button,body.md-auth-screen input{font:inherit}
body.md-auth-screen button{cursor:pointer}
.md-auth-shell{min-height:100vh;min-height:100svh;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:38px 16px 24px;position:relative;isolation:isolate}
.md-auth-shell::before{content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;background:radial-gradient(circle at 85% 4%,rgba(18,175,137,.11),transparent 35%),radial-gradient(circle at 8% 97%,rgba(31,104,86,.08),transparent 39%)}
.md-auth-brand{width:100%;max-width:500px;display:flex;justify-content:center;margin:0 auto 23px}
.md-auth-brand__home{display:inline-flex;flex-direction:row;align-items:center;gap:13px;color:var(--auth-text)!important}
.md-auth-brand__mark{height:51px;width:51px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;background:#e2f7ee;color:#078466;border:1px solid #caeade;border-radius:16px;box-shadow:0 4px 12px rgba(20,99,74,.06)}
.md-auth-brand__mark svg{width:30px;height:30px}
.md-auth-brand__name{display:flex;flex-direction:column;justify-content:center;gap:1px;line-height:1.42}
.md-auth-brand__name strong{color:#143b31;font-size:21px;font-weight:800;letter-spacing:-.2px}
.md-auth-brand__name small{color:#6b827b;font-size:12px;font-weight:500}
body.md-auth-screen #center.md-auth-main{width:min(100%,500px)!important;max-width:500px!important;min-width:0!important;margin:0 auto!important;padding:0!important;box-sizing:border-box!important}
body.md-auth-screen .md-auth-main .mainBlock{background:transparent!important;padding:0!important;width:100%!important;max-width:100%!important;box-shadow:none!important}
body.md-auth-screen .md-auth-main .panel{background:var(--auth-surface)!important;border:1px solid rgba(206,225,219,.85)!important;margin:0!important;padding:0!important;width:100%!important;max-width:100%!important;border-radius:22px!important;box-shadow:0 19px 56px rgba(22,72,56,.075),0 2px 10px rgba(22,72,56,.03)!important;overflow:visible!important}
body.md-auth-screen .md-auth-main .panel-title{display:flex!important;flex-direction:row!important;align-items:center!important;gap:13px!important;clear:none!important;overflow:visible!important;background:transparent!important;border:0!important;border-radius:22px 22px 0 0!important;color:var(--auth-text)!important;padding:30px 34px 11px!important;margin:0!important;box-shadow:none!important}
.md-auth-title-mark{height:44px;width:44px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;background:#e8f7f0;color:#108567;border-radius:13px}
.md-auth-title-mark svg{width:23px;height:23px}
body.md-auth-screen .panel-title h1#md-auth-heading{font-size:22px!important;font-weight:800!important;color:#173b31!important;margin:0!important;padding:0!important;line-height:1.5!important}
body.md-auth-screen .md-auth-main .panel-content{background:transparent!important;box-shadow:none!important;border:0!important;clear:none!important;width:100%!important;overflow:visible!important;padding:2px 34px 32px!important;color:var(--auth-text)!important}
.md-auth-intro{font-size:13.5px;color:var(--auth-muted);line-height:1.85;margin:0 0 21px}
.md-auth-login-form{display:block;width:100%;padding:0;margin:0}
.md-auth-field{display:block;margin:0 0 18px;width:100%}
.md-auth-field label{display:block;color:#28453b;font-size:13.5px;font-weight:700;margin-bottom:8px;line-height:1.6}
.md-auth-entry{display:block;position:relative;width:100%;margin:0}
body.md-auth-screen .md-auth-entry>input{display:block!important;appearance:none!important;-webkit-appearance:none!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-height:51px!important;height:51px!important;line-height:1.5!important;margin:0!important;padding:10px 48px 10px 16px!important;border-radius:12px!important;border:1px solid #d6e5df!important;background:#fbfdfc!important;color:#173a31!important;box-shadow:none!important;font-size:14px!important;font-weight:500!important;text-align:right!important;direction:rtl!important;outline:0!important;transition:border-color .15s,box-shadow .15s,background .15s}
body.md-auth-screen .md-auth-entry>input::placeholder{color:#91a19b;opacity:1;font-size:13px;font-weight:400}
body.md-auth-screen .md-auth-entry>input:hover{border-color:#a6c6ba!important;background:#fff!important}
body.md-auth-screen .md-auth-entry>input:focus-visible{border-color:var(--auth-primary)!important;background:#fff!important;box-shadow:0 0 0 4px var(--auth-focus)!important}
.md-auth-entry__icon{position:absolute;top:50%;right:15px;transform:translateY(-50%);width:19px;height:19px;color:#879e94;display:grid;place-items:center;pointer-events:none}
.md-auth-entry__icon svg{width:19px;height:19px;display:block}
body.md-auth-screen .md-auth-entry--password>input{padding-left:78px!important}
body.md-auth-screen .md-auth-toggle{position:absolute!important;top:50%!important;left:8px!important;right:auto!important;transform:translateY(-50%)!important;display:flex!important;align-items:center!important;justify-content:center!important;min-width:58px!important;height:35px!important;margin:0!important;padding:3px 8px!important;border-radius:8px!important;border:0!important;background:transparent!important;color:#0c8064!important;font-size:12px!important;font-weight:700!important;box-shadow:none!important}
body.md-auth-screen .md-auth-toggle:hover{background:#e9f7f0!important}
body.md-auth-screen .md-auth-toggle:focus-visible{outline:2px solid var(--auth-primary)!important;outline-offset:1px}
.md-auth-help-row{display:flex;align-items:center;justify-content:flex-end;margin:-2px 0 21px;font-size:13px}
.md-auth-help-row a{font-weight:700}
body.md-auth-screen .md-auth-submit{width:100%!important;min-height:51px!important;margin:0!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;color:#fff!important;background:linear-gradient(110deg,#119b77,#08795f)!important;border:1px solid #078469!important;border-bottom:1px solid #078469!important;border-radius:12px!important;box-shadow:0 7px 15px rgba(7,121,95,.16)!important;text-align:center!important;font-size:15px!important;font-weight:800!important;transition:transform .15s,box-shadow .15s,background .15s}
body.md-auth-screen .md-auth-submit:hover{background:linear-gradient(110deg,#0e8f6e,#086e56)!important;transform:translateY(-1px);box-shadow:0 10px 19px rgba(7,121,95,.21)!important}
body.md-auth-screen .md-auth-submit:focus-visible{outline:3px solid #a2dfcd;outline-offset:3px}
body.md-auth-screen .md-auth-submit:active{transform:translateY(0)}
.md-auth-submit svg{height:17px;width:17px;flex:0 0 auto}
.md-auth-signup{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;margin:23px 0 0;padding:20px 0 0;border-top:1px solid #edf2ef;color:#697f77;font-size:13.5px;text-align:center}
.md-auth-signup a{font-weight:800}
.md-auth-footer{background:transparent!important;border:0!important;box-shadow:none!important;max-width:500px!important;width:100%!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:21px 8px 0;color:#80968e;font-size:12px;text-align:center}
.md-auth-footer a{font-size:12px;font-weight:700}
/* Other authentication routes share this template. Keep form and action styles usable. */
body.md-auth-screen .panel-content form{min-width:0;max-width:100%}
body.md-auth-screen .panel-content .form-unit{display:block!important;clear:none!important;width:100%!important;max-width:100%!important;float:none!important;margin:0 0 13px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
body.md-auth-screen .panel-content .form-unit-title,body.md-auth-screen .panel-content .form-unit-textarea-title{display:block;width:100%;padding:0 0 6px;margin:0;font-size:13px;font-weight:700;color:#28453b}
body.md-auth-screen .panel-content .form-unit-field{display:block!important;width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;box-shadow:none!important;background:transparent!important}
body.md-auth-screen .panel-content .form-unit-field>input:not([type=checkbox]):not([type=radio]):not([type=hidden]),body.md-auth-screen .panel-content .form-unit-field>select,body.md-auth-screen .panel-content .form-unit-field>textarea,body.md-auth-screen .panel-content .activation-card input:not([type=checkbox]):not([type=hidden]){appearance:none;display:block;width:100%!important;max-width:100%!important;min-height:49px;padding:12px 15px!important;margin:0!important;color:#173a31!important;border:1px solid #d6e5df!important;border-radius:12px!important;background:#fbfdfc!important;box-shadow:none!important;font-size:14px!important;outline:0!important}
body.md-auth-screen .panel-content .form-unit-field>input:focus-visible,body.md-auth-screen .panel-content .form-unit-field>select:focus-visible,body.md-auth-screen .panel-content .form-unit-field>textarea:focus-visible{border-color:var(--auth-primary)!important;box-shadow:0 0 0 4px var(--auth-focus)!important}
body.md-auth-screen .form-submit-unit button,body.md-auth-screen .activation-card .btn,body.md-auth-screen .activation-primary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px!important;border:1px solid #078469!important;border-radius:10px!important;background:var(--auth-primary)!important;color:#fff!important;font-weight:700!important;box-shadow:none!important;text-decoration:none!important}
body.md-auth-screen .form-submit-unit button{width:100%}
body.md-auth-screen .form-submit-unit button:hover,body.md-auth-screen .activation-primary:hover{background:var(--auth-primary-deep)!important}
body.md-auth-screen .auth-links{display:flex!important;gap:9px 15px!important;justify-content:flex-start;flex-wrap:wrap;margin-top:14px!important;padding:0!important;font-size:13px}
body.md-auth-screen .auth-links a{display:inline-block;padding:7px 0!important;font-weight:700}
body.md-auth-screen .auth-hint{display:flex;justify-content:center;align-items:center;gap:7px;flex-wrap:wrap;border-top:1px solid #edf2ef;padding-top:17px;margin-top:18px;color:#698177;font-size:13px}
body.md-auth-screen .auth-hint a{font-weight:800}
body.md-auth-screen .activation-card{color:#334b43;line-height:1.8}
body.md-auth-screen .activation-card p{margin:7px 0 14px}
body.md-auth-screen .activation-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
body.md-auth-screen .activation-badge{background:#fff5dc;border:1px solid #f0deab;border-radius:18px;padding:5px 9px;color:#896519}
body.md-auth-screen .activation-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:17px}
body.md-auth-screen .activation-actions form{max-width:100%}
body.md-auth-screen .activation-secondary{background:#fff!important;color:#0a8063!important}
body.md-auth-screen .activation-secondary:hover{background:#effbf5!important}
body.md-auth-screen .panel-content .warmNote,body.md-auth-screen .panel-content .successNote{border-radius:10px;padding:10px 12px}
/* Social providers retain their existing service flow and markup. */
body.md-auth-screen .auth-oauth{margin-top:17px}
body.md-auth-screen .auth-oauth-sep{position:relative;text-align:center;margin:17px 0;color:#7b8e86;font-size:13px}
body.md-auth-screen .auth-oauth-sep::before{content:"";position:absolute;top:50%;right:0;left:0;height:1px;background:#e5ede8}
body.md-auth-screen .auth-oauth-sep span{position:relative;padding:0 12px;background:#fff}
body.md-auth-screen .auth-oauth-grid{display:grid;grid-template-columns:1fr;gap:10px}
body.md-auth-screen .auth-oauth-btn{display:flex;align-items:center;justify-content:center;gap:11px;min-height:47px;padding:9px 14px;border:1px solid #d6e5df;border-radius:12px;background:#fff;color:#243d34!important;font-size:13px;font-weight:700}
body.md-auth-screen .auth-oauth-btn:hover{border-color:#83b7a6;background:#f7fbf9}
body.md-auth-screen .auth-oauth-btn__icon,body.md-auth-screen .auth-oauth-btn__icon svg{display:inline-block;width:21px;height:21px}
body.md-auth-screen .auth-oauth-btn__text{line-height:1.5}
@media(max-width:520px){.md-auth-shell{justify-content:flex-start;padding:32px 14px 22px}.md-auth-brand{margin-bottom:22px}.md-auth-brand__name strong{font-size:19px}body.md-auth-screen .md-auth-main .panel{border-radius:18px!important}body.md-auth-screen .md-auth-main .panel-title{padding:26px 23px 10px!important}body.md-auth-screen .md-auth-main .panel-content{padding:2px 23px 27px!important}.md-auth-title-mark{height:40px;width:40px}body.md-auth-screen .panel-title h1#md-auth-heading{font-size:20px!important}.md-auth-footer{padding-top:20px}}
@media(max-width:360px){body.md-auth-screen .md-auth-main .panel-title{padding:23px 18px 8px!important}body.md-auth-screen .md-auth-main .panel-content{padding:2px 18px 24px!important}.md-auth-brand__mark{width:46px;height:46px}}
@media(prefers-reduced-motion:reduce){body.md-auth-screen *,body.md-auth-screen *::before,body.md-auth-screen *::after{scroll-behavior:auto!important;transition:none!important}}
