Match auth screens to the in-app layout and collapse the profile hero on scroll.

Login and register no longer use a boxed splash, and the mobile profile keeps only the avatar as the green header shrinks.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-10 21:41:07 +03:30
co-authored by Cursor
parent c81db8e620
commit 20a8e2eec2
6 changed files with 309 additions and 134 deletions
+12 -18
View File
@@ -72,14 +72,15 @@ async function submit() {
</script>
<template>
<div class="page page-shell auth-page">
<AuthThemeToggle />
<div class="page auth-page">
<header class="auth-top">
<span aria-hidden="true" />
<h1 class="auth-top__title">ورود</h1>
<AuthThemeToggle variant="inline" />
</header>
<div class="page__scroll flex flex-col justify-center py-6">
<div class="auth-header">
<h1 class="page-title">ورود به سامانه</h1>
<p class="page-subtitle">سامانه سفارش عمده پارچه</p>
</div>
<div class="page__scroll auth-body">
<p class="auth-lead">برای سفارش پارچه، شماره موبایل خود را وارد کنید.</p>
<form class="card" @submit.prevent="submit">
<FormErrorBanner :message="formError" />
@@ -102,17 +103,10 @@ async function submit() {
<BaseButton block type="submit" :loading="auth.loading">دریافت کد تأیید</BaseButton>
</form>
<div class="mt-6 w-full max-w-[var(--form-max-width)] text-center">
<p class="m-0 text-sm text-muted">
حساب کاربری ندارید؟
<RouterLink
to="/register"
class="ms-1 font-bold text-primary no-underline hover:underline"
>
ثبت نام کنید
</RouterLink>
</p>
</div>
<p class="auth-switch">
حساب کاربری ندارید؟
<RouterLink to="/register">ثبت‌نام کنید</RouterLink>
</p>
</div>
</div>
</template>