Skip to content

Commit 488ff1e

Browse files
MasterSelectsclaude
andcommitted
fix: harmonize auth/account/pricing dialogs with changelog design system
- Strip .welcome-overlay card look (transparent bg, no border/shadow) - Add gradient header + opaque content bg like changelog - Unify border-radius to 8px, bg opacity to 0.02 - Fix pricing cards: readable descriptions (13px/50%), capitalize names - Compact buttons (38px), tighter padding (24px horizontal) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5e3315d commit 488ff1e

2 files changed

Lines changed: 61 additions & 46 deletions

File tree

src/components/common/PricingDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export function PricingDialog({ onClose }: PricingDialogProps) {
7474
<article key={plan.id} className={`pricing-plan-card ${plan.featured ? 'pricing-plan-featured' : ''}`}>
7575
<div className="pricing-plan-top">
7676
<div>
77-
<h3 className="pricing-plan-name">{plan.id.toUpperCase()}</h3>
77+
<h3 className="pricing-plan-name">{plan.id.charAt(0).toUpperCase() + plan.id.slice(1)}</h3>
7878
<p className="pricing-plan-description">{plan.description}</p>
7979
</div>
8080
<div className="pricing-plan-price">{plan.price}</div>

src/components/common/authBillingDialogs.css

Lines changed: 60 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@
171171
border: 1px solid rgba(52, 211, 153, 0.25);
172172
}
173173

174-
/* ─── New Auth Dialog (Changelog-style) ─── */
174+
/* ─── Auth Dialog (Changelog-style floating) ─── */
175175

176176
.auth-dialog {
177177
width: 480px;
@@ -183,14 +183,26 @@
183183
flex-direction: column;
184184
align-items: stretch;
185185
color: var(--text-primary, #f2f5ff);
186+
/* Strip .welcome-overlay card — match .changelog-dialog */
187+
background: transparent;
188+
border: none;
189+
box-shadow: none;
186190
}
187191

188192
.auth-dialog-header {
189193
display: flex;
190194
align-items: center;
191195
justify-content: space-between;
192-
padding: 24px 28px 20px;
196+
padding: 20px 24px 24px;
193197
flex-shrink: 0;
198+
border-radius: 20px 20px 0 0;
199+
background: linear-gradient(
200+
to bottom,
201+
rgba(22, 22, 22, 0.97) 0%,
202+
rgba(22, 22, 22, 0.92) 40%,
203+
rgba(22, 22, 22, 0.6) 70%,
204+
transparent 100%
205+
);
194206
}
195207

196208
.auth-dialog-header-left {
@@ -209,7 +221,9 @@
209221
display: flex;
210222
flex-direction: column;
211223
gap: 24px;
212-
padding: 0 28px 28px;
224+
padding: 16px 24px 24px;
225+
background: rgba(22, 22, 22, 0.95);
226+
border-radius: 0 0 20px 20px;
213227
}
214228

215229
.auth-dialog-intro {
@@ -220,7 +234,7 @@
220234

221235
.auth-dialog-subtitle {
222236
margin: 0;
223-
font-size: 20px;
237+
font-size: 18px;
224238
font-weight: 600;
225239
color: var(--text-primary, #f2f5ff);
226240
}
@@ -229,7 +243,7 @@
229243
margin: 0;
230244
font-size: 13px;
231245
line-height: 1.6;
232-
color: rgba(255, 255, 255, 0.45);
246+
color: rgba(255, 255, 255, 0.50);
233247
}
234248

235249
.auth-dialog-form {
@@ -241,21 +255,22 @@
241255
.auth-dialog-field {
242256
display: flex;
243257
flex-direction: column;
244-
gap: 8px;
258+
gap: 6px;
245259
}
246260

247261
.auth-dialog-label {
248-
font-size: 12px;
262+
font-size: 11px;
249263
font-weight: 500;
264+
text-transform: uppercase;
250265
color: rgba(255, 255, 255, 0.5);
251-
letter-spacing: 0.04em;
266+
letter-spacing: 0.12em;
252267
}
253268

254269
.auth-dialog-input {
255270
border: 1px solid rgba(255, 255, 255, 0.08);
256-
border-radius: 12px;
271+
border-radius: 8px;
257272
background: rgba(255, 255, 255, 0.04);
258-
padding: 12px 14px;
273+
padding: 10px 14px;
259274
color: var(--text-primary, #f2f5ff);
260275
font-size: 14px;
261276
outline: none;
@@ -278,7 +293,7 @@
278293

279294
.auth-dialog-provider {
280295
padding: 10px 16px;
281-
border-radius: 10px;
296+
border-radius: 8px;
282297
border: 1px solid rgba(255, 255, 255, 0.08);
283298
background: rgba(255, 255, 255, 0.04);
284299
color: rgba(255, 255, 255, 0.6);
@@ -305,13 +320,13 @@
305320
display: inline-flex;
306321
align-items: center;
307322
justify-content: center;
308-
height: 44px;
323+
height: 38px;
309324
padding: 0 20px;
310325
border-radius: 999px;
311326
border: 1px solid rgba(255, 255, 255, 0.12);
312327
background: rgba(255, 255, 255, 0.08);
313328
color: rgba(255, 255, 255, 0.88);
314-
font-size: 14px;
329+
font-size: 13px;
315330
font-weight: 600;
316331
cursor: pointer;
317332
transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
@@ -330,7 +345,7 @@
330345

331346
.auth-dialog-notice {
332347
padding: 12px 14px;
333-
border-radius: 12px;
348+
border-radius: 8px;
334349
font-size: 13px;
335350
line-height: 1.5;
336351
}
@@ -359,10 +374,10 @@
359374
display: inline-flex;
360375
align-items: center;
361376
justify-content: center;
362-
height: 44px;
377+
height: 38px;
363378
padding: 0 20px;
364379
border-radius: 999px;
365-
font-size: 14px;
380+
font-size: 13px;
366381
font-weight: 500;
367382
cursor: pointer;
368383
transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
@@ -402,14 +417,14 @@
402417
.account-metrics-grid {
403418
display: grid;
404419
grid-template-columns: repeat(3, 1fr);
405-
gap: 10px;
420+
gap: 8px;
406421
}
407422

408423
.account-metric-card {
409-
padding: 16px;
410-
border-radius: 14px;
424+
padding: 12px 14px;
425+
border-radius: 8px;
411426
border: 1px solid rgba(255, 255, 255, 0.06);
412-
background: rgba(255, 255, 255, 0.03);
427+
background: rgba(255, 255, 255, 0.02);
413428
}
414429

415430
.account-metric-label {
@@ -419,20 +434,20 @@
419434
text-transform: uppercase;
420435
letter-spacing: 0.12em;
421436
color: rgba(255, 255, 255, 0.35);
422-
margin-bottom: 8px;
437+
margin-bottom: 6px;
423438
}
424439

425440
.account-metric-value {
426-
font-size: 18px;
441+
font-size: 16px;
427442
font-weight: 600;
428443
color: var(--text-primary, #f2f5ff);
429444
}
430445

431446
.account-usage-card {
432-
padding: 16px;
433-
border-radius: 14px;
447+
padding: 12px 14px;
448+
border-radius: 8px;
434449
border: 1px solid rgba(255, 255, 255, 0.06);
435-
background: rgba(255, 255, 255, 0.03);
450+
background: rgba(255, 255, 255, 0.02);
436451
}
437452

438453
.account-usage-entry {
@@ -464,50 +479,50 @@
464479
.pricing-plans-grid {
465480
display: grid;
466481
grid-template-columns: repeat(2, 1fr);
467-
gap: 12px;
482+
gap: 10px;
468483
}
469484

470485
.pricing-plan-card {
471-
padding: 18px;
472-
border-radius: 14px;
486+
padding: 14px 16px;
487+
border-radius: 8px;
473488
border: 1px solid rgba(255, 255, 255, 0.06);
474-
background: rgba(255, 255, 255, 0.03);
489+
background: rgba(255, 255, 255, 0.02);
475490
display: flex;
476491
flex-direction: column;
477-
gap: 4px;
492+
gap: 6px;
478493
}
479494

480495
.pricing-plan-featured {
481496
border-color: rgba(255, 255, 255, 0.14);
482-
background: rgba(255, 255, 255, 0.05);
497+
background: rgba(255, 255, 255, 0.04);
483498
}
484499

485500
.pricing-plan-top {
486501
display: flex;
487502
justify-content: space-between;
488-
align-items: flex-start;
489-
gap: 12px;
503+
align-items: baseline;
504+
gap: 8px;
490505
}
491506

492507
.pricing-plan-name {
493508
margin: 0;
494-
font-size: 14px;
495-
font-weight: 700;
496-
letter-spacing: 0.04em;
509+
font-size: 15px;
510+
font-weight: 600;
511+
letter-spacing: 0.02em;
497512
color: var(--text-primary, #f2f5ff);
498513
}
499514

500515
.pricing-plan-description {
501-
margin: 4px 0 0;
502-
font-size: 12px;
503-
line-height: 1.45;
504-
color: rgba(255, 255, 255, 0.38);
516+
margin: 0;
517+
font-size: 13px;
518+
line-height: 1.5;
519+
color: rgba(255, 255, 255, 0.50);
505520
}
506521

507522
.pricing-plan-price {
508-
font-size: 13px;
509-
font-weight: 600;
510-
color: rgba(255, 255, 255, 0.5);
523+
font-size: 12px;
524+
font-weight: 500;
525+
color: rgba(255, 255, 255, 0.45);
511526
white-space: nowrap;
512527
font-style: italic;
513528
}
@@ -516,13 +531,13 @@
516531
font-size: 14px;
517532
font-weight: 500;
518533
color: rgba(255, 255, 255, 0.65);
519-
margin: 8px 0 4px;
534+
margin: 6px 0 8px;
520535
}
521536

522537
.pricing-plan-cta {
523538
width: 100%;
524539
margin-top: auto;
525-
padding: 10px 16px;
540+
padding: 8px 16px;
526541
border-radius: 999px;
527542
border: 1px solid rgba(255, 255, 255, 0.1);
528543
background: rgba(255, 255, 255, 0.06);

0 commit comments

Comments
 (0)