/*
 * Ben & Emma — login page
 * Visual language matched to the main wedding website:
 * warm ivory, forest green, muted sage and restrained burgundy accents.
 * Load after /styles.css.
 */

body.bg-rose-50 {
  margin: 0;
  min-height: 100vh;
  background: #faf7f0;
  color: #174b3b;
  font-family: Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.bg-rose-50 *,
body.bg-rose-50 *::before,
body.bg-rose-50 *::after {
  box-sizing: border-box;
}

body.bg-rose-50 main {
  min-height: 100vh;
}

/* Layout */
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.block { display: block; }
.hidden { display: none; }
.w-full { width: 100%; }
.max-w-xl { max-width: 36rem; }
.text-left { text-align: left; }
.text-center { text-align: center; }

/* Spacing */
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.pt-6 { padding-top: 1.5rem; }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-5xl { font-size: 3rem; line-height: 1.1; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.font-medium { font-weight: 500; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.8; }
.tracking-\[0\.3em\] { letter-spacing: 0.3em; }

body.bg-rose-50 h1,
body.bg-rose-50 h2 {
  margin-top: 0;
  color: #174b3b;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.035em;
}

body.bg-rose-50 h1 {
  margin-bottom: 1.25rem;
}

body.bg-rose-50 h2 {
  margin-bottom: 1rem;
}

/* Main-site palette mapped to the existing utility class names */
.text-white { color: #fffdf8; }
.text-emerald-900 { color: #174b3b; }
.text-emerald-800\/70 { color: rgb(23 75 59 / 72%); }
.text-emerald-800\/60 { color: rgb(23 75 59 / 62%); }
.text-emerald-800\/50 { color: rgb(23 75 59 / 52%); }
.text-emerald-800\/40 { color: rgb(23 75 59 / 42%); }

.bg-white\/60 { background-color: rgb(255 253 248 / 88%); }
.bg-white\/70 { background-color: rgb(255 253 248 / 90%); }
.bg-emerald-800 { background-color: #174b3b; }
.bg-rose-50 { background-color: #faf7f0; }

/* Access card */
.border { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-rose-100 { border-color: rgba(23, 75, 59, 0.14); }
.border-rose-200 { border-color: rgba(23, 75, 59, 0.22); }
.rounded-xl { border-radius: 3px; }
.rounded-3xl { border-radius: 4px; }

body.bg-rose-50 .shadow-sm {
  box-shadow: 0 10px 35px rgba(23, 75, 59, 0.045);
}

/* Form controls */
body.bg-rose-50 input[type="email"] {
  display: block;
  min-height: 48px;
  border: 1px solid rgba(23, 75, 59, 0.25);
  border-radius: 3px;
  color: #174b3b;
  font: inherit;
  background: #fffdf8;
  box-shadow: none;
}

body.bg-rose-50 input[type="email"]::placeholder {
  color: rgba(119, 124, 112, 0.75);
  opacity: 1;
}

body.bg-rose-50 input[type="email"]:focus {
  border-color: #174b3b;
  outline: 2px solid rgba(23, 75, 59, 0.10);
  outline-offset: 1px;
  box-shadow: none;
}

/* Primary action follows the main site's green button styling */
body.bg-rose-50 button[type="submit"] {
  min-height: 50px;
  border: 1px solid #174b3b;
  border-radius: 50px;
  color: #fffdf8;
  background: #174b3b;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.25s ease, color 0.25s ease,
              background-color 0.25s ease, box-shadow 0.25s ease;
}

body.bg-rose-50 button[type="submit"]:hover {
  transform: translateY(-2px);
  color: #174b3b;
  background: transparent;
  box-shadow: none;
}

body.bg-rose-50 button[type="submit"]:focus-visible {
  outline: 2px solid #783c4b;
  outline-offset: 3px;
}

/* Utility interaction states */
.outline-none { outline: 2px solid transparent; outline-offset: 2px; }
.transition {
  transition-property: color, background-color, border-color, box-shadow, transform;
  transition-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-duration: 200ms;
}
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1);
}
.duration-200 { transition-duration: 200ms; }
.cursor-pointer { cursor: pointer; }

.placeholder\:text-emerald-800\/40::placeholder {
  color: rgba(119, 124, 112, 0.75);
  opacity: 1;
}
.focus\:border-emerald-700:focus { border-color: #174b3b; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px rgba(23, 75, 59, 0.10); }
.focus\:ring-emerald-700\/10:focus { box-shadow: 0 0 0 2px rgba(23, 75, 59, 0.10); }
.hover\:bg-emerald-700:hover { background-color: #174b3b; }
.hover\:shadow-md:hover { box-shadow: 0 8px 22px rgba(23, 75, 59, 0.10); }

/* Responsive utilities */
@media (min-width: 768px) {
  .md\:text-7xl { font-size: 4.5rem; line-height: 1.1; }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .md\:p-10 { padding: 2.5rem; }
}

@media (max-width: 480px) {
  body.bg-rose-50 main {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  body.bg-rose-50 .max-w-xl > div:first-child {
    margin-bottom: 2rem;
  }

  body.bg-rose-50 .rounded-3xl {
    padding: 1.5rem;
  }

  body.bg-rose-50 h1 {
    font-size: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.bg-rose-50 *,
  body.bg-rose-50 *::before,
  body.bg-rose-50 *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
