/* Shared central sign-in and account chooser. */
html body:has(.ca-auth-page){
  min-height:100vh;
  background:
    radial-gradient(circle at 8% 9%,rgba(183,239,0,.31),transparent 25%),
    radial-gradient(circle at 92% 88%,rgba(219,255,121,.27),transparent 28%),
    linear-gradient(135deg,#f7f9f4 0%,#edf3e9 48%,#f8fbf5 100%) !important;
}
html body .ca-auth-page,html body .ca-auth-page *{box-sizing:border-box;font-family:var(--app-font,Vazir,Vazirmatn,Tahoma,Arial,sans-serif);}
html body .ca-auth-page{width:min(1160px,calc(100% - 32px));min-height:100vh;margin:0 auto;padding:28px 0;display:grid;grid-template-columns:minmax(0,1.06fr) minmax(360px,.94fr);align-items:center;gap:clamp(24px,5vw,74px);}
html body .ca-auth-brand-panel{position:relative;min-height:575px;overflow:hidden;display:flex;flex-direction:column;justify-content:center;padding:clamp(27px,5vw,66px);border:1px solid rgba(255,255,255,.96);border-radius:36px;background:linear-gradient(145deg,rgba(27,39,52,.98),rgba(38,55,67,.95) 63%,rgba(54,75,77,.92));box-shadow:0 32px 80px rgba(27,39,52,.22),inset 0 1px 0 rgba(255,255,255,.1);color:#fff;isolation:isolate;}
html body .ca-auth-brand-panel::before,html body .ca-auth-brand-panel::after{content:"";position:absolute;border-radius:999px;pointer-events:none;z-index:-1;}
html body .ca-auth-brand-panel::before{width:390px;height:390px;left:-134px;bottom:-182px;background:radial-gradient(circle at 48% 42%,rgba(202,255,67,.94) 0 7%,rgba(183,239,0,.30) 8% 33%,transparent 34%);filter:blur(.2px);}
html body .ca-auth-brand-panel::after{width:470px;height:470px;right:-234px;top:-180px;border:1px solid rgba(222,255,130,.28);box-shadow:0 0 0 50px rgba(183,239,0,.035),0 0 0 105px rgba(183,239,0,.028);}
html body .ca-auth-brand-top{position:absolute;inset:26px 28px auto;display:flex;justify-content:space-between;align-items:center;gap:12px;}
html body .ca-auth-home{display:inline-flex;align-items:center;gap:7px;color:rgba(255,255,255,.78);font-size:11px;font-weight:800;text-decoration:none;transition:color .2s ease,transform .2s ease;}
html body .ca-auth-home:hover{color:#dfff82;transform:translateX(-3px);}
html body .ca-auth-live{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:rgba(255,255,255,.08);color:#eff8dc;font-size:10px;font-weight:800;backdrop-filter:blur(10px);}
html body .ca-auth-live i{width:7px;height:7px;border-radius:50%;background:#b7ef00;box-shadow:0 0 0 4px rgba(183,239,0,.14);animation:caAuthPulse 2.2s infinite;}
html body .ca-auth-mark{position:relative;width:134px;height:134px;display:grid;place-items:center;margin-bottom:25px;}
html body .ca-auth-mark::before,html body .ca-auth-mark::after{content:"";position:absolute;border:1px solid rgba(210,255,91,.55);border-radius:50%;}
html body .ca-auth-mark::before{inset:1px 9px 13px 1px;transform:rotate(-28deg);animation:caAuthOrbit 12s linear infinite;}
html body .ca-auth-mark::after{inset:15px 1px 1px 17px;border-color:rgba(255,255,255,.27);transform:rotate(44deg);animation:caAuthOrbitReverse 15s linear infinite;}
html body .ca-auth-logo{position:relative;width:91px;height:91px;border-radius:28px;background:#fff url('brand/coachassist-symbol.png') center/75% auto no-repeat;box-shadow:0 16px 35px rgba(0,0,0,.19),inset 0 1px 0 #fff;z-index:2;}
html body .ca-auth-logo img,html body .ca-auth-logo svg{max-width:76%;max-height:76%;}
html body .ca-auth-brand-copy{position:relative;z-index:1;max-width:455px;}
html body .ca-auth-eyebrow{display:inline-flex;align-items:center;gap:8px;margin:0 0 10px;color:#dfff82;font-size:11px;font-weight:900;letter-spacing:.01em;}
html body .ca-auth-eyebrow::before{content:"";width:22px;height:2px;border-radius:99px;background:#b7ef00;}
html body .ca-auth-brand-copy h1{max-width:440px;margin:0;color:#fff;font-size:clamp(31px,4.2vw,49px);line-height:1.25;letter-spacing:-.045em;}
html body .ca-auth-brand-copy p{max-width:420px;margin:16px 0 0;color:rgba(245,251,237,.75);font-size:13px;line-height:2.05;}
html body .ca-auth-benefits{display:flex;flex-wrap:wrap;gap:8px;margin-top:25px;}
html body .ca-auth-benefits span{display:inline-flex;align-items:center;gap:6px;padding:9px 11px;border:1px solid rgba(255,255,255,.13);border-radius:12px;background:rgba(255,255,255,.07);color:#f7fbea;font-size:10.5px;font-weight:800;backdrop-filter:blur(8px);}
html body .ca-auth-benefits i{width:7px;height:7px;border-radius:50%;background:#b7ef00;box-shadow:0 0 0 3px rgba(183,239,0,.12);}
html body .ca-auth-card-wrap{width:100%;}
html body .ca-auth-card{position:relative;overflow:hidden;padding:clamp(24px,4vw,39px);border:1px solid rgba(255,255,255,.98);border-radius:31px;background:linear-gradient(145deg,rgba(255,255,255,.92),rgba(249,255,235,.77));box-shadow:0 26px 60px rgba(27,39,52,.13),inset 0 1px 0 #fff;backdrop-filter:blur(26px) saturate(145%);-webkit-backdrop-filter:blur(26px) saturate(145%);}
html body .ca-auth-card::before{content:"";position:absolute;width:145px;height:145px;left:-78px;top:-74px;border:1px solid rgba(183,239,0,.32);border-radius:50%;box-shadow:0 0 0 20px rgba(183,239,0,.055),0 0 0 42px rgba(183,239,0,.035);pointer-events:none;}
html body .ca-auth-card-header{position:relative;display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:22px;}
html body .ca-auth-card-header h2{margin:0;color:#1b2734;font-size:25px;line-height:1.25;letter-spacing:-.035em;}
html body .ca-auth-card-header h1{margin:0;color:#1b2734;font-size:29px;line-height:1.5;letter-spacing:-.035em;}
html body .ca-auth-card-header p{margin:7px 0 0;color:#68787a;font-size:11.5px;line-height:1.9;}
html body .ca-auth-card-logo{width:44px;height:44px;flex:0 0 44px;border-radius:15px;background:#fff url('brand/coachassist-symbol.png') center/70% auto no-repeat;box-shadow:0 10px 21px rgba(132,177,0,.17);}
html body .ca-auth-note{position:relative;display:flex;align-items:flex-start;gap:9px;margin:0 0 17px;padding:11px 12px;border:1px solid rgba(132,177,0,.15);border-radius:16px;background:rgba(239,255,196,.56);color:#536252;font-size:10.5px;line-height:1.85;}
html body .ca-auth-note strong{display:block;color:#30412c;font-size:11px;}
html body .ca-auth-note-icon{width:29px;height:29px;flex:0 0 29px;display:grid;place-items:center;border-radius:10px;background:#b7ef00;color:#1b2734;font-size:14px;}
html body .ca-auth-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0 0 18px;padding:5px;border:1px solid rgba(27,39,52,.08);border-radius:16px;background:rgba(255,255,255,.58);}
html body .ca-auth-tab{min-height:41px;border:0;border-radius:12px;background:transparent;color:#6d7b7b;font:800 11px/1 var(--app-font,Vazir,Vazirmatn,Tahoma,Arial,sans-serif);cursor:pointer;transition:background .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease;}
html body .ca-auth-tab:hover{color:#1b2734;}
html body .ca-auth-tab.is-active{background:linear-gradient(135deg,#dfff82,#b7ef00);color:#1b2734;box-shadow:0 7px 16px rgba(164,217,0,.23),inset 0 1px 0 rgba(255,255,255,.72);}
html body .ca-auth-form{position:relative;display:grid;gap:13px;}
/* The component rule above is more specific than the browser's [hidden] rule.
   Keep inactive login methods truly out of the layout (and screen-reader flow). */
html body .ca-auth-page [hidden]{display:none!important;}
html body .ca-auth-form .fg{margin:0;}
html body .ca-auth-form .fg label{display:block;margin:0 0 7px;color:#465757;font-size:11px;font-weight:850;}
html body .ca-auth-form .fg input{width:100%;height:48px;padding:0 14px;border:1px solid rgba(27,39,52,.14);border-radius:14px;background:rgba(255,255,255,.86);color:#1b2734;font:500 13px/1 var(--app-font,Vazir,Vazirmatn,Tahoma,Arial,sans-serif);outline:0;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;}
html body .ca-auth-form .fg input::placeholder{color:#9aa6a3;}
html body .ca-auth-form .fg input:focus{border-color:rgba(132,177,0,.72);background:#fff;box-shadow:0 0 0 4px rgba(183,239,0,.19);}
html body .ca-auth-password{position:relative;}
html body .ca-auth-password input{padding-left:68px !important;}
html body .ca-auth-password-toggle{position:absolute;left:7px;top:50%;z-index:1;min-width:53px;height:32px;padding:0 8px;border:1px solid rgba(27,39,52,.09);border-radius:10px;background:#f6faef;color:#556847;font:800 9.5px/1 var(--app-font,Vazir,Vazirmatn,Tahoma,Arial,sans-serif);cursor:pointer;transform:translateY(-50%);}
html body .ca-auth-submit{width:100%;min-height:50px;margin-top:4px;border:1px solid rgba(112,151,0,.22);border-radius:15px;background:linear-gradient(135deg,#dfff82,#b7ef00);color:#1b2734;font:900 12.5px/1 var(--app-font,Vazir,Vazirmatn,Tahoma,Arial,sans-serif);box-shadow:0 13px 25px rgba(164,217,0,.25),inset 0 1px 0 rgba(255,255,255,.75);cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;}
html body .ca-auth-submit:hover{transform:translateY(-2px);box-shadow:0 18px 31px rgba(164,217,0,.34),inset 0 1px 0 rgba(255,255,255,.76);}
html body .ca-auth-submit:active{transform:translateY(0);}
html body .ca-auth-secondary{width:100%;min-height:40px;margin-top:9px;border:1px solid rgba(27,39,52,.12);border-radius:13px;background:rgba(255,255,255,.7);color:#526260;font:800 10.5px/1 var(--app-font,Vazir,Vazirmatn,Tahoma,Arial,sans-serif);cursor:pointer;}
html body .ca-auth-card .alert{position:relative;margin:0 0 15px;border-radius:14px;font-size:10.5px;line-height:1.8;}
html body .ca-auth-security{display:flex;align-items:center;gap:7px;margin:18px 0 0;color:#82908b;font-size:9.5px;line-height:1.8;}
html body .ca-auth-security::before{content:"✓";width:18px;height:18px;display:grid;place-items:center;border-radius:7px;background:rgba(183,239,0,.36);color:#536f00;font-weight:900;}
/* ورود یک‌مسیره: درگاه اصلی نباید حس یک لندینگ شلوغ را داشته باشد. */
html body .ca-auth-page.ca-auth-simple{width:min(510px,calc(100% - 28px));display:block;min-height:100vh;padding:clamp(18px,5vh,54px) 0;}
html body .ca-auth-simple .ca-auth-simple-brand{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 4px 18px;}
html body .ca-auth-simple .ca-auth-simple-name{display:inline-flex;align-items:center;gap:9px;color:#1b2734;font-size:17px;font-weight:950;letter-spacing:-.02em;direction:ltr;}
html body .ca-auth-simple .ca-auth-simple-logo{width:38px;height:38px;display:block;border:1px solid rgba(183,239,0,.55);border-radius:12px;background:#fff url('brand/coachassist-symbol.png') center/72% auto no-repeat;box-shadow:0 8px 16px rgba(27,39,52,.08);}
html body .ca-auth-simple .ca-auth-simple-home{color:#61705c;font-size:10.5px;font-weight:850;text-decoration:none;}
html body .ca-auth-simple .ca-auth-simple-home:hover{color:#1b2734;}
html body .ca-auth-simple .ca-auth-card{padding:28px;border-radius:24px;background:rgba(255,255,255,.86);box-shadow:0 18px 42px rgba(27,39,52,.10);}
html body .ca-auth-simple .ca-auth-card::before{width:110px;height:110px;left:-64px;top:-62px;box-shadow:0 0 0 14px rgba(183,239,0,.04);}
html body .ca-auth-simple .ca-auth-card-header{margin-bottom:19px;}
html body .ca-auth-simple .ca-auth-card-header h2{font-size:24px;}
html body .ca-auth-simple .ca-auth-card-header p{max-width:380px;margin-top:6px;font-size:10.5px;line-height:1.8;}
html body .ca-auth-simple .ca-auth-tabs{margin-bottom:15px;padding:4px;border-radius:13px;}
html body .ca-auth-simple .ca-auth-tab{min-height:39px;border-radius:10px;font-size:10.5px;}
html body .ca-auth-simple .ca-auth-form{gap:11px;}
html body .ca-auth-simple .ca-auth-form .fg input{height:46px;border-radius:12px;font-size:12.5px;}
html body .ca-auth-simple .ca-auth-submit{min-height:47px;margin-top:2px;border-radius:13px;box-shadow:0 9px 19px rgba(164,217,0,.22);}
html body .ca-auth-simple .ca-auth-security{margin-top:14px;font-size:9px;}
@media(max-width:520px){
  html body .ca-auth-page.ca-auth-simple{width:min(100% - 20px,510px);padding-top:14px;}
  html body .ca-auth-simple .ca-auth-simple-brand{margin-bottom:13px;}
  html body .ca-auth-simple .ca-auth-card{padding:22px 18px;border-radius:20px;}
  html body .ca-auth-simple .ca-auth-card-header h2{font-size:22px;}
}
@keyframes caAuthPulse{0%,100%{box-shadow:0 0 0 4px rgba(183,239,0,.14)}50%{box-shadow:0 0 0 8px rgba(183,239,0,.04)}}
@keyframes caAuthOrbit{to{transform:rotate(332deg)}}
@keyframes caAuthOrbitReverse{to{transform:rotate(-316deg)}}
@media(max-width:900px){html body .ca-auth-page{grid-template-columns:1fr;max-width:620px;padding:18px 0 28px;gap:16px;}html body .ca-auth-brand-panel{min-height:290px;padding:75px 28px 29px;border-radius:28px;}html body .ca-auth-brand-top{inset:18px 21px auto;}html body .ca-auth-mark{position:absolute;left:25px;bottom:23px;width:92px;height:92px;margin:0;opacity:.88;}html body .ca-auth-logo{width:61px;height:61px;border-radius:20px;}html body .ca-auth-brand-copy{max-width:390px;padding-left:82px;}html body .ca-auth-brand-copy h1{font-size:29px;}html body .ca-auth-brand-copy p{font-size:11px;margin-top:8px;}html body .ca-auth-benefits{margin-top:13px;}html body .ca-auth-benefits span{padding:7px 9px;font-size:9.5px;}}
@media(max-width:520px){html body .ca-auth-page{width:min(100% - 20px,620px);padding-top:10px;}html body .ca-auth-brand-panel{min-height:242px;padding:65px 19px 21px;border-radius:23px;}html body .ca-auth-brand-copy{padding-left:64px;}html body .ca-auth-brand-copy h1{font-size:25px;line-height:1.35;}html body .ca-auth-brand-copy p{font-size:10px;line-height:1.85;}html body .ca-auth-benefits{gap:5px;}html body .ca-auth-benefits span{padding:6px 7px;font-size:8.5px;}html body .ca-auth-mark{left:16px;bottom:14px;width:75px;height:75px;}html body .ca-auth-logo{width:51px;height:51px;border-radius:17px;}html body .ca-auth-card{padding:22px 18px;border-radius:24px;}html body .ca-auth-card-header h2{font-size:22px;}html body .ca-auth-card-header p{font-size:10.5px;}html body .ca-auth-card-logo{width:39px;height:39px;flex-basis:39px;border-radius:13px;}html body .ca-auth-note{font-size:9.5px;}html body .ca-auth-form .fg input{height:47px;}}
@media(prefers-reduced-motion:reduce){html body .ca-auth-page *,html body .ca-auth-page *::before,html body .ca-auth-page *::after{animation:none!important;transition:none!important;}}
/* One consistent entry for every account. */
html body .ca-auth-simple .ca-auth-card{padding:32px;background:#fff;border:1px solid #e2e9db;box-shadow:0 20px 65px #1b27340c}
html body .ca-auth-simple .ca-auth-card::before{display:none}
html body .ca-auth-kicker{font-size:11px;font-weight:800;color:#6b8428;margin-bottom:9px}
html body .ca-auth-simple .ca-auth-card-header p{font-size:13px;line-height:1.9}
html body .ca-auth-steps{list-style:none;display:flex;gap:16px;padding:0;margin:0 0 24px;color:#7b8678;font-size:11px}
html body .ca-auth-steps li{display:flex;align-items:center;gap:7px}
html body .ca-auth-steps li[aria-current]{color:#344823;font-weight:800}
html body .ca-auth-steps span{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#f0f3eb}
html body .ca-auth-steps li[aria-current] span{background:#dfff82}
html body .ca-auth-tab{display:flex;align-items:center;justify-content:center;text-decoration:none}
html body .ca-auth-hint{font-size:12px;line-height:1.95;color:#61705c;margin:0 0 18px}
html body .ca-auth-simple .ca-auth-form{gap:17px}
html body .ca-auth-form .fg label{font-size:12px}
html body .ca-auth-simple .ca-auth-form .fg input{height:51px;font-size:15px;background:#fcfdfb;border-color:#d9e1d1}
html body .ca-auth-form input#loginOtp{font-size:24px;letter-spacing:8px;text-align:center}
html body .ca-auth-simple .ca-auth-submit{min-height:51px;font-size:13px;box-shadow:none}
html body .ca-auth-feedback{margin-bottom:18px;padding:13px 15px;border:1px solid #d9e9bf;border-radius:12px;background:#f4faea;color:#40592c;font-size:12px;line-height:1.9}
html body .ca-auth-feedback.is-error{background:#fff4f1;border-color:#f0c9be;color:#9e3a27}
html body .ca-auth-otp-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px;margin-top:14px}
html body .ca-auth-otp-actions form{margin:0}
html body .ca-auth-text-link{display:inline-flex;align-items:center;min-height:44px;background:none;border:0;padding:5px 0;color:#4c641e;font:700 11px/1.8 var(--app-font,Vazir,Tahoma,sans-serif);cursor:pointer;text-decoration:underline;text-underline-offset:4px}
html body .ca-auth-page button:disabled{opacity:.55;cursor:wait;transform:none}
html body .ca-auth-help{margin-top:25px;border-top:1px solid #e9ede4;padding-top:14px}
html body .ca-auth-help summary{cursor:pointer;font-size:12px;font-weight:750;color:#4a5c3e;min-height:36px;align-content:center}
html body .ca-auth-help p{font-size:11px;color:#68745f;line-height:2}
html body .ca-auth-help b{color:#3e5130}
html body .ca-auth-footer{text-align:center;margin:18px 0 0;color:#7b8675;font-size:11px}
html body .ca-auth-simple .ca-auth-security{font-size:10px;align-items:flex-start;line-height:1.9}
html body .ca-auth-security::before{flex-shrink:0}
html body .ca-auth-choice{display:flex;align-items:center;gap:16px;padding:16px 0;border-bottom:1px solid #e6ecdf}
html body .ca-auth-choice span{flex:1;min-width:0}
html body .ca-auth-choice b{display:block;color:#33432c;font-size:14px;overflow-wrap:anywhere}
html body .ca-auth-choice small{display:block;margin-top:5px;color:#77816e;font-size:11px;line-height:1.8}
html body .ca-auth-choice .ca-auth-secondary{width:auto;min-height:44px;margin:0;padding:8px 13px;flex-shrink:0}
html body .ca-auth-page :is(a,button,summary):focus-visible{outline:3px solid #7da02b;outline-offset:4px}
@media(max-width:520px){html body .ca-auth-simple .ca-auth-card{padding:25px 20px}html body .ca-auth-card-header h1{font-size:26px}html body .ca-auth-simple .ca-auth-form .fg input{font-size:16px}html body .ca-auth-choice{flex-wrap:wrap}html body .ca-auth-choice .ca-auth-secondary{max-width:100%}}
/* One clear action per accessible account. */
html body .ca-panel-choices{display:grid;gap:12px;margin:24px 0}
html body .ca-panel-choice{margin:0}
html body .ca-panel-choice-button{display:flex;align-items:center;gap:14px;width:100%;min-height:94px;padding:18px;border:1px solid #dce6dc;border-radius:18px;background:#fff;color:#193f34;font:inherit;text-align:right;cursor:pointer;transition:background .18s,border-color .18s,transform .18s}
html body .ca-panel-choice-button:hover{background:#f5f9ef;border-color:#9fbe91;transform:translateY(-2px)}
html body .ca-panel-choice-icon{display:grid;place-items:center;flex:0 0 46px;height:46px;border-radius:14px;background:#edf5e1;font-size:26px;color:#315a41}
html body .ca-panel-choice-copy{flex:1;min-width:0}
html body .ca-panel-choice-copy b{display:block;font-size:15px;line-height:1.8}
html body .ca-panel-choice-copy small{display:block;font-size:12px;line-height:1.9;color:#728074;margin-top:3px;overflow-wrap:anywhere}
html body .ca-panel-choice-copy em{display:inline-block;font-style:normal;font-size:10px;color:#416f3e;background:#edf7e8;border-radius:6px;padding:2px 7px;margin-top:5px}
html body .ca-panel-choice-arrow{font-size:20px;color:#64816a}
html body .ca-auth-simple .ca-auth-card{box-shadow:0 20px 65px #2446320d;border:1px solid #e4eade}
@media(max-width:520px){html body .ca-panel-choice-button{padding:15px 12px;gap:10px}html body .ca-panel-choice-copy b{font-size:14px}html body .ca-auth-card-header h1{font-size:24px;line-height:1.7}}
@media(prefers-reduced-motion:reduce){html body .ca-panel-choice-button{transition:none;transform:none}}

html body.ca-panel-selector .ca-auth-page.ca-auth-simple{width:min(100% - 32px,960px)}
html body.ca-panel-selector .ca-auth-card-wrap{width:100%;max-width:1020px}
html body.ca-panel-selector .ca-auth-card{width:100%;max-width:none;box-sizing:border-box}
html body.ca-panel-selector .ca-panel-choices{grid-template-columns:repeat(2,minmax(0,1fr))}
html body.ca-panel-selector .ca-panel-choice-button{height:100%;min-height:150px;flex-wrap:wrap}
html body.ca-panel-selector .ca-panel-choice-arrow{font-size:13px;font-weight:800;white-space:nowrap}
@media(max-width:650px){html body.ca-panel-selector .ca-panel-choices{grid-template-columns:1fr}html body.ca-panel-selector .ca-panel-choice-button{min-height:115px}}
