/* =========================================================
   Reset / Base
   ========================================================= */
* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: Arial, sans-serif;
  background: #d0c3b3;
  margin: 0;
  padding: 16px;

  background-image: url('abstract-wave-bg-japanese.svg');
  /* Other useful properties: */
  /* background-repeat: repeat-x; */
  /* Prevents the image from tiling */
  background-size: cover;
  /* Scales image to cover the entire element */
  background-position: center;
  /* Centers the image */
  background-attachment: fixed;
}

/* =========================================================
   Generic card (used by forms AND home)
   ========================================================= */
.card {
  background: #fff;
  padding: 24px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 12px;
}

/* =========================================================
   Typography
   ========================================================= */
h1,
h2 {
  margin-top: 0;
}

h2 {
  margin-bottom: 20px;
  font-size: 20px;
}

/* =========================================================
   Forms (unchanged behavior)
   ========================================================= */
form {
  background: #fff;
  padding: 20px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 10px;
}

label {
  display: block;
  margin-top: 18px;
  font-weight: 600;
  font-size: 14px;
}

input {
  width: 100%;
  padding: 14px 12px;
  margin-top: 6px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

input:focus {
  outline: none;
  border-color: #1976d2;
}

/* =========================================================
   Buttons
   ========================================================= */
button {
  width: 100%;
  margin-top: 20px;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  background: #1976d2;
  color: white;
}

button.secondary {
  background: #e0e0e0;
  color: #333;
}

button:active {
  transform: scale(0.98);
}

/* =========================================================
   Home page
   ========================================================= */
.home-container {
  max-width: 480px;
  margin: 40px auto;
}

.home-title {
  text-align: center;
  margin-bottom: 32px;
}

.home-title h1 {
  font-size: 22px;
  margin-bottom: 8px;
}

.home-title p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.home-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-actions a {
  text-decoration: none;
}

/* =========================================================
   Warning box
   ========================================================= */
.no-print {
  font-size: 14px;
  line-height: 1.4;
}

/* =========================================================
   Desktop enhancements
   ========================================================= */
@media (min-width: 768px) {
  body {
    padding: 40px;
  }

  form,
  .card {
    max-width: 600px;
    padding: 28px;
    border-radius: 8px;
  }

  h2 {
    font-size: 22px;
  }

  button {
    width: auto;
    padding: 12px 24px;
    font-size: 14px;
  }

  .home-actions button {
    width: 100%;
  }
}