@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');
/* Reset default browser margins and set proper box calculation */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
}

/* When logged out: show login gate, hide protected app container */
body.gated #gate {
  display: flex;
}
body.gated #app {
  display: none;
}

/* When logged in: hide login gate, show protected app container */
body:not(.gated) #gate {
  display: none;
}
body:not(.gated) #app {
  display: block;
}

/* Main Gate / Landing Container */
#gate {
  background-color: #e7e1f5;
  color: #510935;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  padding: 2.5rem 4rem 2rem 4rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Top Navigation Header */
.gate-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #510935;
}

.brand-icon {
  display: inline-block;
  width: 10px;
  height: 10px;
  -webkit-mask: url("/static/logo.svg") no-repeat center / contain;
  mask: url("/static/logo.svg") no-repeat center / contain;
}

.gate-nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.gate-nav a {
  text-decoration: none;
  color: #510935;
  font-size: 0.875rem;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.gate-nav a:hover {
  opacity: 0.7;
}

/* Two-Column Hero Grid */
.hero-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 9rem;
  max-width: 1600px;
  margin: 3rem auto;
  padding: 0 2rem;
  width: 100%;
  box-sizing: border-box;
}


/* Left Hero Column */
.hero-left {
  flex: 1 1 400px;      
  max-width: 480px;    
  margin: 0 auto !important;         
}

.brand-headline {
  font-family: var(--display);
  font-size: 10rem;
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: #510935;
  margin: 0 0 1.5rem 0;
  text-transform: uppercase;
  
}

.brand-tagline {
  font-size: 1.05rem;
  color: #9E5277;
  margin: 0;

}

/* Right Hero Column */
.hero-right {
  flex: 1 1 400px; 
  max-width: 600px;
  margin: 0 auto;     
  transform: none;    
}

.hero-image {
  width: 80%;
  max-width: 420px;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto 1.5rem auto;   
  transform: translateX(-50px);
}

.hero-right h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.1rem;
  font-weight: 500;
  line-height: 1.25;
  color: #510935;
  margin: 0 0 1.25rem 0;
}

.description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #9E5277;
  margin: 0 0 2rem 0;
  max-width: 600px;
}

/* Primary Button 
.btn-primary {
  background-color: #3C0929;
  color: #e7e1f5;
  border: none;
  padding: 0.95rem 1.75rem;
  border-radius: 2px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.btn-primary:hover {
  background-color: #510935;
}

.btn-primary span {
  font-size: 1.1rem;
}
*/

/* sign in button */
/* edited to look like a little gift tag */
.btn-primary {
    position: relative;
    display: inline-block;
    padding: 13px 24px 13px 40px;
    border: 0;
    background: var(--plum);
    color: #fff;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    clip-path: polygon(18px 0, 100% 0, 100% 100%, 18px 100%, 0 50%);
    border-radius: 0 8px 8px 0;
    transform: rotate(-2deg);
    transition: transform .2s, background .15s;
}
.btn-primary::before {                     
    content: "";
    position: absolute;
    left: 15px; top: 50%;
    width: 8px; height: 8px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--lavender);
}
.btn-primary::after { content: "  →"; }
.btn-primary:hover { background: var(--mauve); transform: rotate(0deg) translateY(-2px); }
.btn-primary:active { transform: rotate(0deg) translateY(1px); }



.signin-notice {
  margin-top: 16px;
  font-size: 0.85rem;
  color: #3b1435; /* Subtle tone matching your theme */
  line-height: 1.4;
  max-width: 420px;
}

.privacy-notice a {
  color: #3b1435;
  text-decoration: underline;
}

/* Error Container */
.error-message {
  margin-top: 1rem;
  color: #B00020;
  font-size: 0.85rem;
}

/* Footer Section */
.gate-footer {
  border-top: 1px solid rgba(74, 14, 53, 0.2);
  padding-top: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 2.5fr 1fr;
  align-items: center;
  font-size: 0.75rem;
  color: #9E5277;
}

.footer-copy {
  text-align: left;
}

.footer-notice {
  text-align: center;
  line-height: 1.45;
  padding: 0 1rem;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
}

.footer-links a {
  color: #9E5277;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  #gate {
    padding: 2rem;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-left {
    padding-top: 0;
  }

  .brand-headline {
    font-size: 4rem;
  }

  .gate-footer {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }

  .footer-copy, 
  .footer-links {
    text-align: center;
    justify-content: center;
  }
}