/* gateway.css - Usaka Wellness Gateway & Showcase Redesign */

/* Ensure the layout spans correctly on the login page */
body.login-page {
  background-color: #f5f3ee !important; /* Warm off-white/paper */
  color: #1a1c1a; /* Charcoal / deep ink */
  font-family: 'Inter', sans-serif;
}

body.login-page .app {
  min-height: 100vh;
}

/* Hide the default topbar since the gateway has its own header */
body.login-page .topbar { display: none !important; }

/* The container for the new gateway page inside #app-content */
.gateway-wrapper {
  --bg-color: #f5f3ee;
  --text-main: #1a1c1a;
  --text-muted: #646a66;
  --teal: #1a6f73;
  --teal-hover: #14595c;
  --gold: #b8962e;
  --header-bg: #202422;
  --white: #ffffff;
  --border-color: #e2dfd8;
  
  width: 100%;
  display: flex;
  flex-direction: column;
}

.gateway-wrapper h1, 
.gateway-wrapper h2, 
.gateway-wrapper h3, 
.gateway-wrapper h4,
.gateway-wrapper .zodiak-font {
  font-family: 'Zodiak', serif;
  font-weight: 400;
  color: var(--text-main);
  text-wrap: balance;
}

.gateway-wrapper .container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.gateway-header {
  background-color: var(--header-bg);
  color: var(--white);
  padding: 16px 0;
  width: 100%;
}
.gateway-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gateway-brand {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.gateway-header-link {
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  opacity: 0.8;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gateway-header-link:hover { opacity: 1; }

/* Hero / Access Area */
.gateway-hero-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  border-bottom: 1px solid var(--border-color);
}
.gateway-card {
  background: var(--white);
  max-width: 1100px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  overflow: hidden;
}

/* Left Column: Product Meaning */
.gateway-product-meaning {
  padding: 60px 50px;
  background-color: var(--white);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.gateway-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 24px;
  display: block;
}
.gateway-headline {
  font-size: 42px;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text-main);
}
.gateway-body-copy {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 90%;
  line-height: 1.6;
}
.gateway-workflow {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.gateway-workflow span { opacity: 0.8; }
.gateway-workflow .arrow { color: var(--border-color); }

.gateway-framework-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.gateway-chip {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  background-color: #faf9f7;
}
.gateway-chip.active {
  border-color: var(--teal);
  color: var(--teal);
  background-color: #f0f7f7;
}

/* Right Column: Access Panel */
.gateway-access-panel {
  padding: 60px 50px;
  background-color: #faf9f7;
  display: flex;
  flex-direction: column;
  position: relative;
}
.gateway-lang-switcher {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
}
.gateway-lang-btn {
  background: none;
  border: none;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
}
.gateway-lang-btn.active {
  background: var(--border-color);
  color: var(--text-main);
}

.gateway-access-content { margin: auto 0; }
.gateway-access-title {
  font-family: 'Inter', sans-serif !important;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-main);
}
.gateway-access-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.gateway-form-group { margin-bottom: 20px; text-align: left; position: relative; }
.gateway-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-main);
}
.gateway-form-control {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--white);
  color: var(--text-main);
  transition: border-color 0.2s;
}
.gateway-form-control:focus { outline: none; border-color: var(--teal); }

.gateway-pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.gateway-pw-toggle {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gateway-btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  background-color: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s;
  margin-bottom: 16px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.gateway-btn-primary:hover:not(:disabled) { background-color: var(--teal-hover); }
.gateway-btn-primary:disabled { opacity: 0.7; cursor: not-allowed; }

.gateway-btn-secondary {
  display: block;
  width: 100%;
  padding: 14px;
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s;
  text-decoration: none;
}
.gateway-btn-secondary:hover { background-color: rgba(0,0,0,0.02); }

.gateway-legal-statement {
  margin-top: auto;
  padding-top: 40px;
  font-size: 11px;
  color: #8a8f8c;
  line-height: 1.6;
}
.gateway-legal-statement a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--border-color);
  text-underline-offset: 2px;
}
.gateway-legal-statement a:hover { color: var(--text-main); }

.gateway-error-banner {
  background-color: #FFEBEE;
  color: #B71C1C;
  padding: 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Showcase Section */
.gateway-showcase-hero {
  padding: 80px 0 100px;
  border-bottom: 1px solid var(--border-color);
}
.gateway-showcase-hero h1 {
  font-size: 56px;
  line-height: 1.05;
  max-width: 800px;
  margin-bottom: 32px;
  letter-spacing: -0.5px;
}
.gateway-showcase-hero p {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 48px;
}
.gateway-features-section { padding: 120px 0; }
.gateway-section-title { font-size: 40px; margin-bottom: 80px; }
.gateway-features-grid { display: grid; grid-template-columns: 1fr; gap: 60px; }
.gateway-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border-color);
}
.gateway-feature-row:last-child { border-bottom: none; padding-bottom: 0; }
.gateway-feature-row:nth-child(even) .gateway-feature-text { order: 2; }
.gateway-feature-row:nth-child(even) .gateway-feature-visual { order: 1; }

.gateway-feature-number {
  font-family: 'Zodiak', serif;
  font-size: 24px;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}
.gateway-feature-text h3 {
  font-size: 32px;
  margin-bottom: 20px;
  line-height: 1.2;
}
.gateway-feature-text p {
  font-size: 16px;
  color: var(--text-muted);
}

.gateway-feature-visual {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  aspect-ratio: 4 / 3;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.gateway-feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gateway-footer {
  border-top: 1px solid var(--border-color);
  padding: 60px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* Mobile behavior */
@media (max-width: 800px) {
  .gateway-card { grid-template-columns: 1fr; display: flex; flex-direction: column; }
  .gateway-access-panel { order: 1; padding: 40px 24px; }
  .gateway-product-meaning { order: 2; padding: 40px 24px; border-right: none; border-top: 1px solid var(--border-color); }
  .gateway-headline { font-size: 32px; }
  .gateway-showcase-hero h1 { font-size: 40px; }
  .gateway-feature-row { grid-template-columns: 1fr; gap: 40px; }
  .gateway-feature-row:nth-child(even) .gateway-feature-text { order: 1; }
  .gateway-feature-row:nth-child(even) .gateway-feature-visual { order: 2; }
}
