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

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #1e1f22;
  color: #dcddde;
  min-height: 100vh;
}

/* ── Nav ── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background: #2b2d31;
  border-bottom: 1px solid #1a1c1f;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.2s;
}
.logo-section:hover { opacity: 0.8; }
.logo-section img { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; }
.logo-text { font-size: 1.4em; font-weight: 800; color: #7d5dff; }

#authBtn {
  padding: 8px 20px;
  background: #7D0587;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9em;
  transition: background 0.2s;
}
#authBtn:hover { background: #9b0ba5; }

/* ── Hero ── */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 73px);
  padding: 60px 40px;
  text-align: center;
}
.hero-content { max-width: 640px; }
.hero h1 {
  font-size: 3em;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero p {
  font-size: 1.1em;
  color: #9aa0a6;
  margin-bottom: 32px;
  line-height: 1.6;
}
.cta-button {
  display: inline-block;
  padding: 12px 36px;
  background: #7D0587;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.cta-button:hover { background: #9b0ba5; transform: translateY(-1px); }

/* ── About box ── */
.about-box {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 280px;
  background: #2b2d31;
  border: 1px solid #1a1c1f;
  color: #b5bac1;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.85em;
  line-height: 1.5;
  z-index: 10;
}
.about-box strong { display: block; color: #fff; margin-bottom: 4px; font-size: 0.95em; }

/* ── Auth modal ── */
#authModal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
#authModal.show { opacity: 1; pointer-events: auto; }

.auth-box {
  width: min(460px, 94%);
  background: #2b2d31;
  border: 1px solid #1a1c1f;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

.auth-header {
  padding: 18px 20px;
  border-bottom: 1px solid #1a1c1f;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.auth-header h2 { margin: 0; font-size: 1.1em; color: #fff; }
.auth-header button { background: none; border: none; color: #72767d; cursor: pointer; font-size: 1.2em; padding: 4px; border-radius: 4px; transition: color 0.1s; }
.auth-header button:hover { color: #dcddde; background: #383a40; }

.tabs {
  display: flex;
  border-bottom: 1px solid #1a1c1f;
}
.tab-btn {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #72767d;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9em;
  transition: color 0.1s;
}
.tab-btn:hover { color: #b5bac1; }
.tab-btn.active { color: #fff; border-bottom-color: #7D0587; }

.auth-content { padding: 20px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  color: #b5bac1;
  font-size: 0.82em;
  font-weight: 600;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.form-group input {
  width: 100%;
  padding: 10px 12px;
  background: #383a40;
  border: 1px solid #1a1c1f;
  color: #dcddde;
  border-radius: 6px;
  font-size: 0.93em;
  transition: border-color 0.1s;
}
.form-group input:focus { outline: none; border-color: #7D0587; background: #3d3f45; }
.form-group input::placeholder { color: #72767d; }

.submit-btn {
  width: 100%;
  padding: 10px;
  background: #7D0587;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.93em;
  transition: background 0.15s;
  margin-top: 4px;
}
.submit-btn:hover { background: #9b0ba5; }

.error-msg {
  color: #ed4245;
  font-size: 0.84em;
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(237,66,69,0.08);
  border-left: 3px solid #ed4245;
  border-radius: 4px;
  display: none;
}
.error-msg.show { display: block; }
.success-msg {
  color: #43b581;
  font-size: 0.84em;
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(67,181,129,0.08);
  border-left: 3px solid #43b581;
  border-radius: 4px;
  display: none;
}
.success-msg.show { display: block; }

.password-strength { margin-top: 5px; height: 3px; background: #383a40; border-radius: 2px; overflow: hidden; }
.password-strength-bar { height: 100%; width: 0%; transition: width 0.2s, background 0.2s; }
.password-strength-text { color: #72767d; font-size: 0.75em; margin-top: 3px; }

a { color: #7d5dff; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Mobile ── */
@media (max-width: 600px) {
  nav { padding: 12px 16px; }
  .logo-text { font-size: 1.2em; }
  .hero { padding: 40px 20px; }
  .hero h1 { font-size: 2em; }
  .hero p { font-size: 1em; }
  .about-box { display: none; }
}
