/* Base & Layout */
* {
  box-sizing: border-box;
}

body, html {
  height: 100%;
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #d2b48c 0%, #5c3a21 100%);
  color: #fff8f0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}

/* Container - center content */
.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  max-width: 700px;
  margin: 0 auto;
}

/* Site title */
h1.site-title {
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: 3px;
  margin-bottom: 10px;
  text-shadow: 2px 2px 10px rgba(92, 58, 33, 0.8);
}

/* Tagline */
p.tagline {
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 600;
  margin-bottom: 40px;
  text-shadow: 1px 1px 6px rgba(92, 58, 33, 0.6);
  opacity: 0.9;
}

/* Navigation Links */
.nav-links {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  background: #5c3a21;
  color: #f4e1c1;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 4px 10px rgba(92, 58, 33, 0.5);
  min-width: 150px;
  text-align: center;
  border: 2px solid #d2b48c;
  text-decoration: none;
  user-select: none;
}

.nav-links a:hover,
.nav-links a:focus {
  background: #d2b48c;
  color: #5c3a21;
  outline: none;
  box-shadow: 0 6px 15px rgba(210, 180, 140, 0.8);
  border-color: #5c3a21;
  cursor: pointer;
}

/* Footer */
footer {
  text-align: center;
  padding: 15px 10px;
  font-size: 0.9rem;
  color: #f4e1c1aa;
  background: rgba(92, 58, 33, 0.2);
  box-shadow: inset 0 1px 5px rgba(255, 255, 255, 0.1);
  font-weight: 500;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(92, 58, 33, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 1000;
}

.modal-content {
  background: #5c3a21;
  border-radius: 12px;
  padding: 30px 40px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 8px 30px rgba(92, 58, 33, 0.9);
  color: #f4e1c1;
  position: relative;
  text-align: center;
}

/* Close button */
.close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  font-weight: bold;
  color: #f4e1c1;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
}

.close:hover,
.close:focus {
  color: #d2b48c;
  outline: none;
}

/* Modal headings */
.modal-content h2 {
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: 900;
  font-size: 2rem;
  text-shadow: 2px 2px 8px rgba(210, 180, 140, 0.8);
}

/* Forms */
form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

label {
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  padding: 10px 14px;
  border: 2px solid #d2b48c;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
  background: #f4e1c12b;
  color: #fff8f0;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
  border-color: #f4e1c1;
  outline: none;
  background: #d2b48c44;
}

/* Buttons */
.button-group {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 10px;
}

button[type="submit"],
button[type="button"] {
  background: #d2b48c;
  border: none;
  border-radius: 8px;
  color: #5c3a21;
  font-weight: 700;
  padding: 12px 24px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(210, 180, 140, 0.7);
  transition: background-color 0.3s ease, color 0.3s ease;
  user-select: none;
  min-width: 120px;
}

button[type="submit"]:hover,
button[type="button"]:hover,
button[type="submit"]:focus,
button[type="button"]:focus {
  background: #5c3a21;
  color: #d2b48c;
  outline: none;
  box-shadow: 0 6px 15px rgba(92, 58, 33, 0.9);
}

/* Error / Success messages */
.error,
.error-message {
  color: #ff6b6b;
  font-weight: 700;
  margin-top: 10px;
  text-shadow: 1px 1px 2px #7a2828;
}

.success-message {
  color: #a2d729;
  font-weight: 700;
  margin-top: 10px;
  text-shadow: 1px 1px 2px #476212;
}

/* Links */
a {
  color: #f4e1c1;
  text-decoration: none;
  font-weight: 600;
  margin-top: 15px;
  display: inline-block;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: #d2b48c;
  outline: none;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  h1.site-title {
    font-size: 2.8rem;
    letter-spacing: 1.5px;
  }
  p.tagline {
    font-size: 1.2rem;
    margin-bottom: 30px;
  }
  .nav-links a {
    min-width: 100%;
    padding: 12px 0;
    font-size: 1rem;
  }
  .modal-content {
    padding: 25px 20px;
    max-width: 320px;
  }
  button[type="submit"],
  button[type="button"] {
    min-width: 100%;
    padding: 14px 0;
    font-size: 1rem;
  }
}

