/* ==========================================================================
   Aditya & Claudia Wedding Gallery - Editorial Luxury Gateway Stylesheet
   Palette: Alabaster White, Warm Champagne Gold, Cream Linen, Deep Charcoal
   Anti-slop, Editorial Typography, Responsive Desktop (Split) & Mobile (Seamless)
   ========================================================================== */

:root {
  --bg-sand: #FAF8F5;          /* Warm Alabaster */
  --bg-cream: #F5EFEB;         /* Pale Linen / Cream */
  --bg-card: #FFFFFF;          /* Pure Silk White */
  --gold-primary: #C5A880;     /* Antique Champagne Gold */
  --gold-dark: #A38458;        /* Rich Deep Gold */
  --gold-light: #E8DFD1;       /* Soft Gold Hairline */
  --gold-glow: rgba(197, 168, 128, 0.18);
  --text-dark: #201E1D;        /* Deep Charcoal / Soft Black */
  --text-body: #4A4643;        /* Warm Dark Gray */
  --text-muted: #7E7873;       /* Warm Medium Gray */
  --text-light: #A8A29D;       /* Delicate Gray */
  --border-line: #EDE7DE;      /* Subtle Hairline Border */
  --border-gold: #DFD3C1;      /* Refined Gold Border */
  
  --error-bg: #FCF4F4;
  --error-border: #F1CDCD;
  --error-text: #963535;
  --info-bg: #FBF8F2;
  --info-border: #E8DEC8;
  --info-text: #786440;

  --font-serif: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --font-sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 24px;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-sand);
  color: var(--text-dark);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

/* Ambient Subtle Grain & Light */
.ambient-glow {
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(232, 223, 209, 0.5) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(245, 239, 235, 0.6) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   Editorial Split Layout (Desktop Baseline 1440px -> 1024px -> Mobile)
   ========================================================================== */

.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

@media (max-width: 640px) {
  .page-wrapper {
    padding: 1rem 0.75rem;
  }
}

.editorial-portal {
  width: 100%;
  max-width: 1120px;
  min-height: 660px;
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  overflow: hidden;
  box-shadow: 
    0 10px 40px -10px rgba(32, 30, 29, 0.04),
    0 25px 60px -15px rgba(197, 168, 128, 0.12);
}

@media (max-width: 1024px) {
  .editorial-portal {
    grid-template-columns: 1fr;
    max-width: 520px;
    min-height: auto;
    border-radius: var(--radius-md);
  }
}

/* ==========================================================================
   Left Column: Photographic Visual Anchor (Desktop) / Ambient Hero Banner
   ========================================================================== */

.editorial-visual {
  position: relative;
  background-color: var(--bg-cream);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
}

@media (max-width: 1024px) {
  .editorial-visual {
    height: 240px;
    padding: 1.75rem;
  }
}

@media (max-width: 640px) {
  .editorial-visual {
    height: 200px;
    padding: 1.25rem;
  }
}

.visual-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.92) contrast(1.02);
  transition: transform 10s ease;
}

.editorial-portal:hover .visual-image {
  transform: scale(1.03);
}

/* Luxury Warm Gold Vignette Overlay */
.visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(32, 30, 29, 0.45) 0%,
    rgba(32, 30, 29, 0.15) 40%,
    rgba(32, 30, 29, 0.75) 100%
  );
}

.visual-top-badge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 9999px;
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.visual-quote-box {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
  max-width: 420px;
}

@media (max-width: 1024px) {
  .visual-quote-box {
    display: none; /* Keep mobile view compact */
  }
}

.visual-kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #E8DFD1;
  margin-bottom: 0.6rem;
}

.visual-quote {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.35;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.75rem;
}

.visual-location {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.08em;
}

/* ==========================================================================
   Right Column: Sanctuary Gateway Card & Form
   ========================================================================== */

.editorial-form-side {
  padding: 3.5rem 3.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background: var(--bg-card);
}

@media (max-width: 640px) {
  .editorial-form-side {
    padding: 2.25rem 1.5rem;
  }
}

.gateway-header {
  text-align: center;
  margin-bottom: 2rem;
}

/* Monogram Stamp */
.monogram-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  background: var(--bg-sand);
  color: var(--gold-dark);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  margin: 0 auto 1.25rem auto;
  box-shadow: 0 2px 10px rgba(197, 168, 128, 0.12);
  position: relative;
}

.monogram-stamp::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1px dashed var(--gold-light);
  pointer-events: none;
}

.ceremony-kicker {
  display: block;
  font-size: 0.725rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.4rem;
}

.couple-names {
  font-family: var(--font-serif);
  font-size: 2.35rem;
  font-weight: 400;
  color: var(--text-dark);
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

@media (max-width: 640px) {
  .couple-names {
    font-size: 1.95rem;
  }
}

.invitation-desc {
  font-size: 0.885rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto;
}

/* Delicate Hairline Divider with Starlet */
.hairline-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.25rem auto 1.5rem auto;
  opacity: 0.85;
}

.hairline-divider::before,
.hairline-divider::after {
  content: "";
  height: 1px;
  width: 38px;
  background-color: var(--border-gold);
}

.hairline-divider span {
  color: var(--gold-primary);
  font-size: 0.75rem;
}

/* Status Notifications */
.status-banner {
  display: none;
  font-size: 0.85rem;
  line-height: 1.45;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  text-align: left;
  animation: bannerSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.status-banner.visible {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.status-banner.error {
  background-color: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error-text);
}

.status-banner.info {
  background-color: var(--info-bg);
  border: 1px solid var(--info-border);
  color: var(--info-text);
}

.status-banner svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   Form Controls
   ========================================================================== */

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.input-block {
  text-align: left;
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.725rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-body);
  margin-bottom: 0.55rem;
}

.field-control {
  position: relative;
  display: flex;
  align-items: center;
}

.input-text {
  width: 100%;
  height: 52px;
  padding: 0 3rem 0 1.25rem;
  font-size: 0.95rem;
  color: var(--text-dark);
  background-color: var(--bg-sand);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all 0.25s ease;
  letter-spacing: 0.08em;
  font-family: inherit;
}

.input-text:focus {
  border-color: var(--gold-primary);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.input-text::placeholder {
  color: var(--text-light);
  letter-spacing: normal;
  font-size: 0.875rem;
}

.toggle-visibility-btn {
  position: absolute;
  right: 0.85rem;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.toggle-visibility-btn:hover {
  color: var(--text-dark);
}

/* Primary Submit Button */
.btn-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  background-color: var(--text-dark);
  color: #FFFFFF;
  border: 1px solid var(--text-dark);
  border-radius: var(--radius-sm);
  font-size: 0.785rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(32, 30, 29, 0.08);
}

.btn-enter:hover:not(:disabled) {
  background-color: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(163, 132, 88, 0.28);
}

.btn-enter:active:not(:disabled) {
  transform: translateY(0);
}

.btn-enter:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Loading Spinner */
.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 0.6rem;
}

.btn-enter.loading .spinner {
  display: inline-block;
}

/* Footer Guarantee */
.guarantee-bar {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-light);
}

.guarantee-bar .validity {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.guarantee-bar .validity svg {
  color: var(--gold-primary);
}

/* Micro-animations */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes bannerSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shakeCard {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.shake {
  animation: shakeCard 0.4s ease-in-out;
}
