/* style.css */

/* 1. Load custom fonts */
@font-face {
  font-family: 'heading';
  src: url('Cormorant-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}
@font-face {
  font-family: 'para';
  src: url('Cormorant-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}

/* 2. Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 3. Body */
body {
  background-color: #FFF8EDAA;
  color: #25251A;
  font-family: 'para', sans-serif;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  line-height: 1.5;
}

/* 4. Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'heading', serif;
  color: #25251A;
  margin-bottom: 0.5em;
}
h1 {
  font-size: 5em;
  font-weight: 500;
}

/* 5. Fade animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}
.fade-out {
  animation: fadeOut 0.5s ease-out forwards;
}

/* 6. Logo */
img.splashlogo {
  width: 300px;
  height: auto;
  opacity: 0;
  animation: fadeIn 2s ease-out forwards;
  margin-bottom: 2rem;
}

/* 7. Signup container */
#signup-container {
  text-align: center;
  width: 300px;
}

/* 8. Signup form */
#signup-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  gap: 1.5rem;
}

/* 9. Field group */
.field-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* 10. Field caption */
.field-caption {
  font-family: 'para', sans-serif;
  color: grey;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  text-align: left;
  user-select: none;
}

/* 11. Inputs */
#signup-form input {
  display: block;
  width: 100%;
  border: none;
  border-bottom: 1px solid #25251A;
  background: transparent;
  padding: 0.25em 0;
  font-family: 'para', sans-serif;
  font-size: 1rem;
  color: #25251A;
}

/* 12. Input focus */
#signup-form input:focus {
  outline: none;
  border-bottom-color: #EBC67E;
}

/* 13. Submit button */
#signup-form button {
  align-self: center;
  padding: 0.5rem 1rem;
  font-family: 'para', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  background-color: #EBC67E;
  border: none;
  border-radius: 4px;
  color: #25251A;
  transition: opacity 0.2s;
}
#signup-form button:hover {
  opacity: 0.9;
}

/* 14. Spinner */
.spinner {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid #EBC67E;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0.5rem auto 0;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 15. Thank-you message */
#thank-you {
  display: none;
  opacity: 0;
  font-size: 1.1em;
  margin-top: 1em;
  color: #25251A;
  font-family: 'para', sans-serif;
}

/* 16. Links */
a {
  color: #EBC67E;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
