@extends('theme::layout')

@section('content')
    <div class="panel article-body">
        <h1 class="page-title">登录</h1>
        @if ($errors->any())
            <p class="flash">{{ $errors->first() }}</p>
        @endif
        <form class="stack" method="post" action="{{ url('/post.php') }}">
            @csrf
            <input type="hidden" name="action" value="dologin">
            <label>用户名或邮箱</label>
            <input name="login" value="{{ old('login') }}" required autocomplete="username">
            <label>密码</label>
            <input type="password" name="password" required autocomplete="current-password">
            <label><input type="checkbox" name="remember" value="1"> 记住我</label>
            <button type="submit">登录</button>
        </form>
        <p class="meta">没有账号？<a href="{{ url('/reg.shtml') }}">注册</a></p>
    </div>
@endsection
