/**
 * [INPUT]: IvyOra fonts from GCS bucket
 * [OUTPUT]: Shared styles for registration pages
 * [POS]: Core stylesheet of registration/, consumed by all HTML pages
 * [PROTOCOL]: Update this header on changes, then check CLAUDE.md
 */

/* ==========================================================================
   FONTS - IvyOra Display Family
   ========================================================================== */

@font-face {
  font-family: 'IvyOra Display';
  src: url('https://storage.googleapis.com/random-public-affe/IvyOra/IvyOraDisplay-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IvyOra Display';
  src: url('https://storage.googleapis.com/random-public-affe/IvyOra/IvyOraDisplay-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IvyOra Display';
  src: url('https://storage.googleapis.com/random-public-affe/IvyOra/IvyOraDisplay-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IvyOra Display';
  src: url('https://storage.googleapis.com/random-public-affe/IvyOra/IvyOraDisplay-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   BASE RESET
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  background-color: #fffffe;
  color: #0b0b0b;
  line-height: 1.6;
  min-height: 100vh;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero-section {
  position: relative;
  background-color: #2a2a2a;
  background-size: cover;
  background-position: center;
  padding: 80px 20px;
  text-align: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.content-section {
  flex: 1;
  padding: 60px 20px;
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}

.centered-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 50vh;
  padding: 60px 20px;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

.page-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: #fffffe;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.page-subtitle {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  max-width: 400px;
  margin: 0 auto;
}

.section-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: #0b0b0b;
  margin-bottom: 16px;
}

.section-subtitle {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  color: #666666;
  line-height: 1.7;
  max-width: 400px;
}

/* ==========================================================================
   ICONS
   ========================================================================== */

.diamond-icon {
  width: 40px;
  height: auto;
  margin-bottom: 24px;
}

.diamond-icon--white {
  filter: brightness(0) invert(1);
}

.diamond-icon--burgundy {
  filter: brightness(0) saturate(100%) invert(25%) sepia(30%) saturate(1200%) hue-rotate(320deg) brightness(90%) contrast(90%);
}

/* ==========================================================================
   FORM ELEMENTS
   ========================================================================== */

.registration-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #0b0b0b;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-input {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  padding: 14px 16px;
  border: 1px solid #E5E5E5;
  border-radius: 4px;
  background-color: #fffffe;
  color: #0b0b0b;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: #8B4049;
  box-shadow: 0 0 0 3px rgba(139, 64, 73, 0.1);
}

.form-input::placeholder {
  color: #999999;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 50px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn--primary {
  background-color: #8B4049;
  color: #fffffe;
}

.btn--primary:hover {
  background-color: #7a3740;
}

.btn--primary:active {
  transform: scale(0.98);
}

.btn--secondary {
  background-color: transparent;
  color: #8B4049;
  border: 1px solid #8B4049;
}

.btn--secondary:hover {
  background-color: rgba(139, 64, 73, 0.05);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.page-footer {
  padding: 20px 20px 40px;
  text-align: center;
}

.footer-logo {
  width: 150px;
  height: auto;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.divider {
  width: 100%;
  height: 1px;
  background-color: #E5E5E5;
  margin: 40px 0;
}

.spacing-top {
  margin-top: 24px;
}

.spacing-top-lg {
  margin-top: 40px;
}

/* ==========================================================================
   MOBILE RESPONSIVE - 480px breakpoint
   ========================================================================== */

@media only screen and (max-width: 480px) {
  .hero-section {
    padding: 60px 20px;
  }

  .page-title {
    font-size: 1.75rem;
    letter-spacing: 0.08em;
  }

  .page-subtitle {
    font-size: 0.85rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
  }

  .content-section {
    padding: 40px 20px;
  }

  .centered-content {
    padding: 40px 20px;
    min-height: 40vh;
  }

  .diamond-icon {
    width: 30px;
  }

  .form-input {
    padding: 12px 14px;
    font-size: 16px; /* Prevents iOS zoom on focus */
  }

  .btn {
    padding: 14px 40px;
    font-size: 0.85rem;
  }

  .footer-logo {
    width: 120px;
  }
}
