/* Login and profile components, using the shared reference theme. */
html body.auth-layout { --bg:var(--background);--fg:var(--foreground);--panel:var(--card);--line:var(--border);--muted:var(--muted-foreground);--green:var(--primary);--mint:var(--accent);background:var(--background);color:var(--foreground);font-family:Vazirmatn,Tahoma,sans-serif;font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased; }
.auth-layout [hidden], .app-page .profile-dialog [hidden] { display:none!important; }
.auth-layout .lucide-icon { fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;width:16px;height:16px;flex:none; }
.auth-layout .auth-page { display:flex;flex-direction:column;min-height:100vh;background:var(--background); }
.auth-layout .auth-hero { flex:1;padding:0;background:linear-gradient(to bottom left,oklch(.432 .095 166.913),oklch(.508 .118 165.612),oklch(.386 .063 188.416)); }
.auth-layout .auth-hero::before { inset:0;width:100%;height:100%;border-radius:0;background:radial-gradient(circle at 20% 30%,white 0,transparent 40%),radial-gradient(circle at 80% 70%,white 0,transparent 35%);opacity:.1;filter:none; }
.auth-layout .auth-hero::after { display:none; }
.auth-layout .auth-hero-inner { width:100%;max-width:none;margin:0;padding:48px 32px;display:flex;flex-direction:column;justify-content:center;gap:32px; }
.auth-layout .auth-brand { gap:12px;margin:0; }
.auth-layout .auth-brand-icon { width:56px;height:56px;border-radius:16px;background:#ffffff26;border:1px solid #fff3;flex:none; }
.auth-layout .auth-brand-icon .lucide-icon { width:32px;height:32px; }
.auth-layout .auth-brand h1 { font-size:24px;font-weight:800;line-height:32px;letter-spacing:-.025em; }
.auth-layout .auth-brand p { margin:0;font-size:14px;line-height:20px;color:#d0fae5cc; }
.auth-layout .auth-feature-grid { max-width:512px;gap:12px; }
.auth-layout .auth-feature { min-height:0;gap:10px;padding:12px 14px;border-radius:12px;background:#ffffff1a;border:1px solid #ffffff26;font-size:14px; }
.auth-layout .auth-feature span { width:20px;height:20px;color:oklch(.879 .169 91.605); }
.auth-layout .auth-feature .lucide-icon { width:20px;height:20px; }
.auth-layout .auth-feature b { font-weight:500;line-height:1.375; }
.auth-layout .auth-demo-note { max-width:512px;margin:0;padding:12px 16px;border-radius:12px;background:#ffffff1a;font-size:14px;line-height:1.625;border:1px solid #ffffff26;color:#ecfdf5e6; }
.auth-layout .auth-form-area { flex:1;padding:24px;background:var(--background); }
.auth-layout .auth-card { width:100%;max-width:448px;padding:24px 0;border:2px solid var(--border);border-radius:12px;background:var(--card);box-shadow:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a;display:flex;flex-direction:column;gap:24px; }
.auth-layout .auth-card-heading { padding:0 24px;margin:0;text-align:center; }
.auth-layout .auth-card-heading h2 { margin:0 0 10px;font-size:24px;line-height:32px;font-weight:800; }
.auth-layout .auth-card-heading p { margin:0;font-size:14px;line-height:20px;color:var(--muted); }
.auth-layout .auth-card-body { padding:0 24px; }
.account-tabs { display:grid;grid-auto-columns:1fr;grid-auto-flow:column;height:36px;padding:3px;border-radius:10px;background:var(--muted-background);color:var(--muted-foreground); }
.account-tabs [role=tab] { display:flex;align-items:center;justify-content:center;gap:6px;border:1px solid transparent;background:transparent;color:var(--foreground);border-radius:8px;font-size:14px;font-weight:500;white-space:nowrap;padding:4px 8px;line-height:20px;min-width:0; }
.account-tabs [role=tab].active { background:var(--background);box-shadow:0 1px 2px #0000000d; }
html[data-theme=dark] .account-tabs [role=tab].active { background:var(--input);border-color:var(--input); }
.account-tabs .lucide-icon { width:16px;height:16px; }
.auth-layout .account-tabs { margin-bottom:32px; }
.auth-layout .auth-login-form { display:grid;gap:16px;margin:0;text-align:right; }
.auth-layout .auth-login-form label, .profile-form label, .profile-otp-form label { display:grid;gap:8px;font-size:14px;font-weight:500;color:var(--foreground);line-height:14px; }
.auth-layout input { height:36px;min-height:36px;border:1px solid var(--input);border-radius:8px;padding:4px 12px;background:transparent;font-size:14px;line-height:20px;margin:0;box-shadow:0 1px 2px #0000000d; }
.auth-layout input::placeholder { color:var(--muted); }
.auth-layout .auth-hint { font-size:11px;line-height:1.625;color:var(--muted);margin:8px 0 0;font-weight:400; }
.auth-layout .auth-login-form > .auth-hint { margin-top:-8px; }
.auth-layout .btn { height:36px;min-height:36px;border:1px solid transparent;border-radius:8px;padding:8px 16px;gap:8px;font-size:14px;font-weight:500;line-height:20px;margin:0; }
.auth-layout .btn:hover { transform:none;filter:none; }
.auth-layout .btn-primary { color:var(--primary-foreground);background:var(--primary); }
.auth-layout .btn-primary:hover { background:color-mix(in oklch,var(--primary) 90%,transparent); }
.auth-layout .auth-sms-submit,.auth-layout [data-otp-submit] { background:oklch(.596 .145 163.225);color:white; }
.auth-layout .btn-quiet { border:1px solid var(--border);background:var(--background);color:var(--foreground); }
.auth-layout button:disabled { opacity:.5;cursor:not-allowed; }
.auth-layout :is(button,input,a):focus-visible { outline:3px solid color-mix(in oklch,var(--ring) 50%,transparent);outline-offset:2px; }
.account-otp-notice { border-radius:8px;background:#10b9811a;padding:10px 12px;color:var(--foreground);font-size:12px;line-height:1.625; }
.account-otp-demo { display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #f59e0b66;border-radius:8px;background:#f59e0b1a;padding:8px 12px; }
.account-otp-demo p { margin:0;font-size:12px; }
.account-otp-actions { display:flex;align-items:center;justify-content:space-between;gap:8px; }
.account-otp-actions button { border:0;background:transparent;color:var(--muted-foreground);font-size:12px;padding:0; }
.account-otp-actions button:not(:disabled):hover { color:var(--primary);text-decoration:underline; }
.auth-layout input.account-code,.app-page input.account-code { text-align:center;font-size:20px;letter-spacing:.5em; }
.app-page .profile-dialog { width:min(672px,calc(100vw - 32px));padding:24px;overflow:hidden; }
.profile-content { display:flex;flex-direction:column;gap:20px;max-height:calc(90dvh - 50px); }
.profile-heading, #profile-tabs > .account-tabs { flex-shrink:0; }
#profile-tabs { display:flex;flex-direction:column;min-height:0; }
.account-spinner { display:inline-block;flex:none;width:16px;height:16px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:account-spin .8s linear infinite; }
[data-busy] > .lucide-icon { display:none; }
@keyframes account-spin { to { transform:rotate(360deg); } }
.account-otp-error { margin:0;border:1px solid #f43f5e66;border-radius:8px;background:#f43f5e1a;padding:10px 12px;font-size:12px;line-height:1.625;color:var(--destructive); }
.profile-heading { position:relative;text-align:left; }
.profile-heading h2 { display:flex;align-items:center;gap:8px;font-size:18px;font-weight:600;line-height:18px;margin:0 0 8px; }
.profile-heading h2 .lucide-icon { width:20px;height:20px;color:var(--primary); }
.profile-heading p { font-size:14px;line-height:20px;margin:0;color:var(--muted); }
.profile-heading .profile-close { position:absolute;top:-8px;right:-8px;width:20px;height:20px;border:0;padding:0;background:transparent;color:var(--muted); }
.profile-close .lucide-icon { width:16px;height:16px; }
.profile-panel { margin-top:24px;max-height:65vh;min-height:0;overflow:auto;padding-left:4px; }
.profile-phone { border:1px solid var(--border);border-radius:12px;background:color-mix(in oklch,var(--muted-background) 40%,transparent);padding:16px;display:grid;gap:8px;margin-bottom:20px; }
.profile-phone > div { display:flex;align-items:center;justify-content:space-between;gap:8px; }
.profile-phone > div > span:first-child { display:flex;align-items:center;gap:6px;font-size:12px;line-height:16px;font-weight:500; }
.profile-phone .lucide-icon { width:14px;height:14px;flex:none; }
.profile-phone b { font-size:14px;line-height:20px;font-weight:600; }
.profile-phone p { display:flex;align-items:flex-start;gap:6px;font-size:11px;line-height:1.625;color:var(--muted);margin:0; }
.phone-badge { padding:2px 8px;border:1px solid #f59e0b80;border-radius:8px;background:#f59e0b1a;font-size:12px;white-space:nowrap; }
.phone-badge.verified { background:#10b98126;border-color:transparent;color:var(--primary); }
.profile-form { display:grid;gap:12px;margin:0; }
.profile-form label { gap:6px; }
.profile-form .btn { width:100%; }
.profile-two { display:grid;grid-template-columns:1fr;gap:12px; }
.profile-form h3 { display:flex;align-items:center;gap:6px;font-size:14px;font-weight:600;line-height:20px;margin:0; }
.profile-form h3 .lucide-icon { width:16px;height:16px;color:var(--primary); }
.profile-form p { font-size:12px;line-height:1.625;color:var(--muted);margin:0; }
.profile-panel hr { margin:20px 0;border:0;border-top:1px solid var(--border); }
.password-input { position:relative; }
.password-input .lucide-icon { position:absolute;right:12px;top:50%;transform:translateY(-50%);width:14px;height:14px;color:var(--muted); }
.app-page .profile-form .password-input input { padding-right:36px; }
.profile-google { display:grid;gap:12px;border:1px solid #f59e0b66;background:#f59e0b1a;border-radius:12px;padding:16px;color:oklch(.555 .163 48.998); }
.profile-google h3 { display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;margin:0; }
.profile-google h3 .lucide-icon { width:16px;height:16px; }
.profile-google p { font-size:12px;line-height:1.625;margin:0; }
html[data-theme=dark] .profile-google { color:oklch(.879 .169 91.605); }
.app-page .profile-dialog input { font-size:14px; }
@media(min-width:640px) { .profile-two { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(min-width:1024px) { .auth-layout .auth-page { flex-direction:row; } .auth-layout .auth-hero-inner { padding-inline:64px; } .auth-layout .auth-brand h1 { font-size:30px;line-height:36px; } }
@media(max-width:639px) { .auth-layout input { font-size:16px; } .profile-panel { max-height:65dvh; } .profile-phone > div { flex-wrap:wrap; } }
