<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>WBX Admin - Login</title>
    <link rel="stylesheet" th:href="@{/admin/css/admin.css}">
</head>
<body>
<div class="login-container">
    <div class="login-box">
        <h2>WBX Admin</h2>
        <div th:if="${param.error}" class="error">이메일 또는 비밀번호가 올바르지 않습니다.</div>
        <div th:if="${param.logout}" class="alert alert-info">로그아웃되었습니다.</div>
        <form th:action="@{/admin/login}" method="post">
            <input type="email" name="username" placeholder="이메일" required autofocus>
            <input type="password" name="password" placeholder="비밀번호" required>
            <button type="submit">로그인</button>
        </form>
    </div>
</div>
</body>
</html>
