@php $pageTitle = '登录 - '.$siteName; @endphp
@include('partials.head')
<body>
@include('partials.header')
<div class="container auth-layout">
    <main class="auth-box">
        <h1 class="list-title">登录</h1>
        <form method="post" action="{{ route('login') }}">
            @csrf
            <div class="form-row">
                <label>账号（邮箱或用户名）</label>
                <input type="text" name="email" required value="{{ old('email') }}" autofocus>
            </div>
            <div class="form-row">
                <label>密码</label>
                <input type="password" name="password" required>
            </div>
            <div class="form-row">
                <label><input type="checkbox" name="remember"> 记住我</label>
            </div>
            @error('email')<p class="error">{{ $message }}</p>@enderror
            <button type="submit" class="btn btn-primary">登录</button>
        </form>
        <p class="auth-alt">还没有账号？<a href="{{ route('register') }}">立即注册</a></p>
    </main>
</div>
@include('partials.footer')
@stack('theme:body_end')
</body>
</html>
