/* SiteScope v3 — Landing Page */
:root {
  --bg: #020617;
  --bg-secondary: #0f172a;
  --card: #111827;
  --card-hover: #1e293b;
  --border: #334155;
  --teal: #14b8a6;
  --teal-dark: #0d9488;
  --teal-light: #2dd4bf;
  --teal-glow: rgba(20, 184, 166, 0.2);
  --cyan: #06b6d4;
  --text: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, 0.1);
  --green: #22c55e;
  --green-bg: rgba(34, 197, 94, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.landing { display: flex; min-height: 100vh; }

/* Left Panel */
.landing-left {
  flex: 1.1;
  background: linear-gradient(135deg, #020a14 0%, #0a1e2e 30%, #0f172a 100%);
  padding: 48px 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.landing-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.08; }
.shape-1 { width: 500px; height: 500px; background: var(--teal); top: -150px; right: -150px; }
.shape-2 { width: 350px; height: 350px; background: var(--cyan); bottom: -100px; left: -100px; }
.shape-3 { width: 250px; height: 250px; background: var(--teal-light); top: 40%; left: 20%; }

.landing-left-content { position: relative; z-index: 1; max-width: 500px; width: 100%; }

.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; }
.brand-icon { font-size: 32px; }
.brand-name { font-size: 26px; font-weight: 800; color: var(--teal); letter-spacing: -0.5px; }

.landing-left h1 { font-size: 44px; font-weight: 800; line-height: 1.1; margin-bottom: 14px; letter-spacing: -1px; }
.tagline { color: var(--teal-light); font-size: 13px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 14px; }
.description { color: var(--text-secondary); font-size: 15px; line-height: 1.7; margin-bottom: 40px; max-width: 460px; }

.features { display: flex; flex-direction: column; gap: 10px; }
.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(51, 65, 85, 0.3);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}
.feature-card:hover { border-color: rgba(20, 184, 166, 0.3); background: rgba(17, 24, 39, 0.8); }
.feature-icon { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.feature-text h3 { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.feature-text p { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }

/* Right Panel */
.landing-right {
  flex: 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: var(--bg);
}

.auth-container { width: 100%; max-width: 380px; }
.auth-form h2 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.auth-subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.form-group input {
  width: 100%;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}
.form-group input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-glow); }
.form-group input::placeholder { color: var(--text-muted); }

.btn-primary {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px var(--teal-glow); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn-primary.loading .btn-label { display: none; }
.btn-primary.loading .btn-spinner { display: block; }

.auth-links { text-align: right; margin-top: 8px; }
.auth-links a { color: var(--text-muted); font-size: 13px; text-decoration: none; }
.auth-links a:hover { color: var(--teal); }

.auth-switch {
  text-align: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}
.auth-switch a { color: var(--teal); text-decoration: none; font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

.error-msg {
  display: none;
  padding: 8px 12px;
  background: var(--red-bg);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  color: var(--red);
  font-size: 13px;
  margin-bottom: 12px;
}
.error-msg.visible { display: block; }

.success-msg {
  display: none;
  padding: 8px 12px;
  background: var(--green-bg);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 6px;
  color: var(--green);
  font-size: 13px;
  margin-bottom: 12px;
  line-height: 1.5;
}
.success-msg.visible { display: block; }
.success-msg a { color: var(--teal); word-break: break-all; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 960px) {
  .landing { flex-direction: column; }
  .landing-left { min-height: auto; padding: 40px 24px; }
  .landing-left h1 { font-size: 32px; }
  .features { gap: 8px; }
  .landing-right { padding: 32px 24px; }
}
@media (max-width: 480px) {
  .landing-left { padding: 32px 20px; }
  .landing-left h1 { font-size: 28px; }
  .landing-right { padding: 24px 20px; }
  .auth-container { max-width: 100%; }
}
