/* HealthySelf360+ Coming Soon - Brand Styles */

:root {
  /* Brand Colors */
  --primary: hsl(156 35% 22%);        /* Forest green */
  --primary-light: hsl(156 35% 28%);  /* Lighter forest */
  --secondary: hsl(43 60% 50%);       /* Gold */
  --secondary-light: hsl(43 70% 60%); /* Lighter gold */
  --background: hsl(45 30% 97%);      /* Cream */
  --foreground: hsl(156 35% 18%);     /* Dark forest */
  --muted: hsl(80 15% 88%);           /* Muted sage */

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
}

/* Reset & Base */
*, *::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: var(--font-sans);
  background: linear-gradient(
    135deg,
    var(--background) 0%,
    var(--muted) 50%,
    var(--background) 100%
  );
  color: var(--foreground);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

/* Container */
.container {
  text-align: center;
  max-width: 540px;
  width: 100%;
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo */
.logo-wrapper {
  margin-bottom: var(--space-lg);
}

.logo {
  width: 280px;
  height: 280px;
  object-fit: contain;
  animation: floatIn 1s ease-out;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Heading */
.heading {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-sm);
  line-height: 1.1;
}

/* Tagline */
.tagline {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--foreground);
  opacity: 0.85;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

/* Contact Notice */
.contact-notice {
  font-size: 1rem;
  font-weight: 400;
  color: var(--foreground);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
  padding: var(--space-sm) var(--space-md);
  background: hsla(156, 35%, 22%, 0.08);
  border-radius: 8px;
  border-left: 3px solid var(--secondary);
}

.contact-notice a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-notice a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

/* Signup Form */
.signup-form {
  margin-bottom: var(--space-2xl);
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 400px;
  margin: 0 auto;
}

@media (min-width: 480px) {
  .input-group {
    flex-direction: row;
  }
}

input[type="email"] {
  flex: 1;
  padding: 1rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 2px solid var(--muted);
  border-radius: 8px;
  background: white;
  color: var(--foreground);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="email"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px hsla(156, 35%, 22%, 0.1);
}

input[type="email"]::placeholder {
  color: var(--foreground);
  opacity: 0.5;
}

button[type="submit"] {
  padding: 1rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  color: var(--foreground);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
}

button[type="submit"]:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px hsla(43, 60%, 50%, 0.35);
}

button[type="submit"]:active:not(:disabled) {
  transform: translateY(0);
}

button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Form Message */
.form-message {
  margin-top: var(--space-sm);
  font-size: 0.9375rem;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 6px;
}

.form-message.success {
  color: var(--primary);
  background: hsla(156, 35%, 22%, 0.1);
}

.form-message.error {
  color: hsl(0 65% 45%);
  background: hsla(0, 65%, 45%, 0.1);
}

/* Footer */
.footer {
  font-size: 0.875rem;
  color: var(--foreground);
  opacity: 0.6;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible for keyboard users */
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
