:root{--bg:#f5f7fb;--surface:#fff;--surface-2:#f8fafc;--text:#172033;--muted:#718096;--line:#e8ecf3;--primary:#6d5dfc;--primary-soft:#eeecff;--shadow:0 12px 35px rgba(25,34,61,.07)}
:root[data-theme=dark]{--bg:#0b1120;--surface:#111827;--surface-2:#182235;--text:#eef2ff;--muted:#98a5ba;--line:#263248;--shadow:0 15px 40px rgba(0,0,0,.25)}
*{box-sizing:border-box}.auth-body{margin:0;background:var(--bg);color:var(--text);font-family:"Tajawal",system-ui,sans-serif;min-width:320px}.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(400px,.9fr) minmax(520px,1.1fr)}.auth-visual{position:relative;overflow:hidden;background:linear-gradient(145deg,#161d32,#27204e);color:#fff;padding:45px;display:flex;flex-direction:column}.auth-brand{display:flex;align-items:center;gap:11px;position:relative;z-index:2}.auth-brand>span,.auth-mobile-brand>span{width:40px;height:40px;border-radius:12px;background:linear-gradient(135deg,#8f81ff,#6554ee);display:grid;place-items:center;font:bold 20px sans-serif}.auth-brand strong,.auth-brand small{display:block}.auth-brand small{font-size:10px;color:#9ba6bf;margin-top:3px}.auth-visual__copy{margin:auto 0;position:relative;z-index:2}.auth-visual__copy p{font-size:11px;color:#a99fff;font-weight:700}.auth-visual__copy h1{font-size:39px;line-height:1.45;margin:8px 0 14px}.auth-visual__copy>span{font-size:12px;color:#abb4c8;line-height:1.8}.auth-pattern{position:absolute;width:440px;height:440px;border:1px solid rgba(255,255,255,.07);border-radius:50%;left:-170px;bottom:-150px}.auth-pattern:before,.auth-pattern:after{content:"";position:absolute;border:1px solid rgba(255,255,255,.06);border-radius:50%;inset:55px}.auth-pattern:after{inset:120px}.auth-content{display:grid;place-items:center;padding:30px}.auth-card{width:min(100%,430px)}.auth-mobile-brand{display:none}.auth-heading{margin-bottom:25px}.auth-heading p{font-size:11px;color:var(--primary);font-weight:700;margin:0}.auth-heading h2{font-size:25px;margin:6px 0 8px}.auth-heading>span{font-size:11px;color:var(--muted)}.auth-form{display:grid;gap:15px}.account-field label{display:block;font-size:10px;font-weight:600;margin-bottom:6px;color:var(--muted)}.account-field input:not([type=checkbox]),.account-field select,.account-field textarea{width:100%;min-height:45px;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--text);outline:0}.account-field input[type=file]{padding:8px}.account-field input:focus,.account-field select:focus,.account-field textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 14%,transparent)}.account-field>small{display:block;font-size:8px;color:var(--muted);line-height:1.6;margin-top:5px}.account-field>p{font-size:9px;color:#d94358;margin:4px 0 0}.account-field--error input{border-color:#d94358}.auth-options{display:flex;align-items:center;justify-content:space-between;font-size:10px}.auth-options label{display:flex;align-items:center;gap:6px;color:var(--muted)}.auth-options a,.auth-back{color:var(--primary);text-decoration:none}.account-btn{min-height:41px;padding:0 15px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--text);font:600 11px/1 "Tajawal",system-ui;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;cursor:pointer}.account-btn--primary{background:var(--primary);color:#fff;border-color:var(--primary);box-shadow:0 8px 20px rgba(109,93,252,.18)}.auth-form>.account-btn{margin-top:3px}.auth-help{text-align:center;color:var(--muted);font-size:9px;margin-top:22px}.auth-back{display:block;text-align:center;font-size:10px;margin-top:18px}.account-flash{padding:11px 14px;border-radius:10px;background:#e9f2ff;color:#3475ce;font-size:10px;margin-bottom:14px}.account-flash--success{background:#e4f8ed;color:#168653}.account-flash--error{background:#ffeaed;color:#c83d52}.auth-result,.result-card{text-align:center}.auth-result>span,.result-card>span{width:52px;height:52px;margin:0 auto 13px;border-radius:50%;display:grid;place-items:center;background:var(--primary-soft);color:var(--primary);font-size:20px}.auth-result h2,.result-card h1{font-size:21px;margin:0 0 8px}.auth-result p,.result-card p{font-size:11px;color:var(--muted);line-height:1.8;margin:0 0 18px}
.workspace-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:21px}.workspace-heading p{font-size:10px;color:var(--primary);font-weight:700;margin:0}.workspace-heading h1{font-size:24px;margin:5px 0}.workspace-heading span{font-size:11px;color:var(--muted)}.workspace-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}.account-messages{margin-bottom:15px}.profile-layout{display:grid;grid-template-columns:300px 1fr;gap:16px}.profile-summary{padding:30px;text-align:center}.profile-summary img,.profile-avatar{width:88px;height:88px;border-radius:25px;object-fit:cover;margin:0 auto 15px}.profile-avatar{display:grid;place-items:center;background:linear-gradient(135deg,#7261f5,#998dff);color:#fff;font-size:30px;font-weight:800}.profile-summary h2{font-size:17px;margin:0 0 5px}.profile-summary p{font-size:11px;color:var(--primary);margin:0 0 10px}.profile-summary>span{font-size:10px;color:var(--muted)}.profile-details{padding:23px}.profile-details h2,.settings-card h2{font-size:14px;margin:0 0 17px;padding-bottom:12px;border-bottom:1px solid var(--line)}.profile-details dl,.settings-card dl{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin:0}.profile-details dt,.settings-card dt{font-size:9px;color:var(--muted);margin-bottom:4px}.profile-details dd,.settings-card dd{font-size:11px;margin:0}.profile-links{display:flex;gap:8px;border-top:1px solid var(--line);margin-top:22px;padding-top:16px}.profile-links a{font-size:10px;color:var(--primary);text-decoration:none;background:var(--primary-soft);border-radius:8px;padding:7px 10px}.account-form-card{max-width:850px;padding:24px}.account-form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.account-form-actions{display:flex;gap:9px;border-top:1px solid var(--line);padding-top:18px;margin-top:20px}.settings-layout{display:grid;grid-template-columns:1fr 1fr;gap:16px}.settings-card{padding:22px}.settings-card h2 small{float:left;color:var(--muted);font-size:8px;font-weight:500}.settings-card>.account-field{margin-bottom:14px}.settings-note{font-size:9px;color:var(--muted);background:var(--surface-2);padding:10px;border-radius:8px}.search-empty{padding:60px 20px;text-align:center}.search-empty>span{font-size:30px;color:var(--primary)}.search-empty h2{font-size:15px;margin:8px}.search-empty p{font-size:10px;color:var(--muted)}.search-groups{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.search-group{padding:18px}.search-group>header{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:11px;margin-bottom:6px}.search-group h2{font-size:13px;margin:0}.search-group header span{font-size:9px;color:var(--primary)}.search-result{display:flex;align-items:center;gap:9px;padding:10px 0;border-bottom:1px solid var(--line);color:var(--text);text-decoration:none}.search-result>span{width:31px;height:31px;border-radius:9px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center;font-weight:700}.search-result>div{flex:1;min-width:0}.search-result strong,.search-result small{display:block;font-size:10px}.search-result small{color:var(--muted);margin-top:3px}.search-result b{color:var(--primary)}.group-empty{text-align:center;color:var(--muted);font-size:9px;padding:20px}.result-card{max-width:500px;margin:50px auto;padding:40px}
@media(max-width:850px){.auth-shell{grid-template-columns:1fr}.auth-visual{display:none}.auth-mobile-brand{display:flex;align-items:center;gap:9px;margin-bottom:35px}.auth-content{min-height:100vh}.profile-layout{grid-template-columns:1fr}.profile-summary{display:flex;text-align:right;align-items:center;gap:15px}.profile-summary img,.profile-avatar{width:65px;height:65px;margin:0}.settings-layout{grid-template-columns:1fr}}
@media(max-width:600px){.auth-content{padding:22px}.workspace-heading{align-items:flex-start;flex-direction:column}.workspace-heading .account-btn{width:100%}.profile-details dl,.settings-card dl,.account-form-grid,.search-groups{grid-template-columns:1fr}.profile-links{flex-direction:column}.profile-links a{text-align:center}.account-form-card,.settings-card,.profile-details{padding:17px}.account-form-actions .account-btn{flex:1}}
