<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Thyme Crunch Login</title>
  <link rel="stylesheet" th:href="@{css/login.css}">
  <link href="https://fonts.googleapis.com/css2?family=Delius+Swash+Caps&family=Mali:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700" rel="stylesheet">
</head>
<body>

<div class="header-wrap">
<a th:href="@{/explore}">
<header class="top-header">
    <img th:src="@{/images/header_left.png}" alt="Violin f-hole shape to the left of header." class="swirl">
    <h1 class="site-name">
    Thyme Crunch
    </h1>
    <img th:src="@{/images/header_right.png}" alt="Violin f-hole shape to the right of header." class="swirl">
</header>
</a>
</div>
  
  <div class="align-decor">
  <!-- Decor Left -->
  <img th:src="@{images/decor_left.png}" alt="Violin f-hole shape to the left of header." class="vert_swirl">

    <!-- Main Content -->
    <main class="main-content">
      <div class="login-box">
        <h2>Log In</h2>
        <div th:if="${param.error}" class="alert">
          Invalid username and password.</div>
        <div th:if="${param.logout}" class="alert">
          You have been logged out.</div>
        <form th:action="@{/login}" method="post">
          <label for="username">Username</label>
          <input type="text" id="username" name="username" required>

          <label for="password">Password</label>
          <input type="password" id="password" name="password" required>

          <button type="submit">Enter</button>
        </form>
      </div>
      <div class="sign_up"> 
        <h3> OR <a th:href="@{/register}"><b>SIGN UP</b></a> FOR AN ACCOUNT </h3>
      </div>
    </main>
    
    <!-- Decor Right -->
    <img th:src="@{images/decor_right.png}" alt="Violin f-hole shape to the left of header." class="vert_swirl">
    </div>
    
  </body>
</html>
