<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<title>Авторизация</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body class="bg-light p-5">
<div class="container" style="max-width: 420px;">
@if(session('errorMessage'))
<div class="alert alert-danger">
<strong>Ошибка!</strong><br>{{ session('errorMessage') }}
</div>
@endif
@if(session('warningMessage'))
<div class="alert alert-warning">
<strong>Предупреждение!</strong><br>{{ session('warningMessage') }}
</div>
@endif
<div class="card p-4">
<h4 class="mb-3 text-center">Вход в систему</h4>
<form action="{{ route('login.submit') }}" method="POST" id="loginForm">
@csrf
<div class="mb-3">
<label class="form-label">Логин</label>
<input type="text" name="login" id="loginInput" class="form-control" placeholder="Введите логин" required>
</div>
<div class="mb-3">
<label class="form-label">Пароль</label>
<input type="password" name="password" id="passwordInput" class="form-control" placeholder="Введите пароль" required>
</div>
<button type="submit" id="loginButton" class="btn btn-primary w-100">Войти</button>
</form>
</div>
</div>
</body>
</html>