<!doctype html>
<html lang="ko" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>DDS 권한 운영 콘솔 로그인</title>
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
  <link href="/css/dds.css" rel="stylesheet">
</head>
<body class="login-page">
<main class="login-card">
  <span class="eyebrow">DEEP DATA SECURITY</span>
  <h1>DDS 권한 운영 콘솔</h1>
  <p>관리자 전용 보호 정책 운영</p>
  <div class="alert alert-danger" th:if="${param.error}">관리자 인증에 실패했습니다.</div>
  <div class="alert alert-success" th:if="${param.logout}">로그아웃되었습니다.</div>
  <form method="post" action="/login">
    <input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}">
    <label class="form-label" for="username">관리자 ID</label>
    <input class="form-control mb-3" id="username" name="username" autocomplete="username" required autofocus>
    <label class="form-label" for="password">비밀번호</label>
    <input class="form-control mb-4" id="password" name="password" type="password" autocomplete="current-password" required>
    <button class="btn btn-primary w-100" type="submit">로그인</button>
  </form>
</main>
</body>
</html>
