/* ============================================================
   Gate Styles — dark / minimal / bestever.design inspired
   Fonts: Lato Thin (subtitle), Montserrat Medium (title), Roboto Light (body/button/input)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@100;300;400;700&family=Montserrat:wght@400;500;600;700&family=Roboto:wght@300;400;500&display=swap');

:root {
  --bg: #0a0a0a;
  --bg-elev: #111111;
  --fg: #e5e5e5;
  --fg-dim: #888888;
  --accent: #ffffff;
  --error: #ff4444;
  --radius: 12px;
  --transition: 0.25s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
}

/* Animated gradient background */
body,
.gradient-bg {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(120,120,120,0.08), transparent),
    radial-gradient(ellipse 60% 40% at 50% 120%, rgba(80,80,80,0.06), transparent),
    var(--bg);
}

/* Centered container */
.gate-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

/* ============================================================
   LOGO — same width as form (max-width: 380px)
   ============================================================ */
.logo-wrap {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.logo-placeholder {
  width: 80px;
  height: 80px;
  border: 2px dashed rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-dim);
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  font-size: 10px;
  text-align: center;
  line-height: 1.2;
  transition: var(--transition);
  flex-shrink: 0;
}

.logo-placeholder:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--fg);
}

.logo-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ============================================================
   CARD
   ============================================================ */
.gate-card {
  background: var(--bg-elev);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 380px;
  text-align: center;
  backdrop-filter: blur(10px);
}

/* ============================================================
   BRANDING
   ============================================================ */
.brand,
.gate-brand {
  font-family: 'Lato', sans-serif;
  font-weight: 100;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 0.25rem;
}

.project-name,
.gate-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.project-desc,
.gate-subtitle {
  font-size: 10px;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  color: var(--fg-dim);
  margin-bottom: 2rem;
}

/* ============================================================
   FORM
   ============================================================ */
.gate-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 380px;
}

.gate-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: var(--fg);
  font-size: 10px;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  outline: none;
  transition: var(--transition);
}

.gate-input::placeholder {
  color: rgba(255,255,255,0.25);
}

.gate-input:focus {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
}

.gate-btn {
  width: 100%;
  padding: 0.875rem;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  font-size: 10px;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  cursor: pointer;
  transition: var(--transition);
}

.gate-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.gate-btn:active {
  transform: translateY(0);
}

/* Error message */
.gate-error {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  font-size: 10px;
  color: var(--error);
  min-height: 1.25rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gate-error:not(:empty) {
  opacity: 1;
}

/* ============================================================
   FOOTER
   ============================================================ */
.gate-footer {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.05em;
}

/* Subtle noise overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}
