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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f0f4f8;
  color: #333;
  min-height: 100vh;
}

a {
  color: #1a73e8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---- Login page ---- */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.login-card {
  background: white;
  border-radius: 16px;
  padding: 48px 40px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-logo {
  margin-bottom: 16px;
}

.login-card h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #1a1a1a;
}

.login-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 28px;
}

.login-card form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-card input {
  padding: 12px 16px;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  text-align: center;
  letter-spacing: 2px;
}

.login-card input:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}

.login-card button {
  padding: 12px;
  background: #1a73e8;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.login-card button:hover {
  background: #1557b0;
}

.login-error {
  color: #d32f2f;
  font-size: 13px;
  margin-top: 4px;
}

/* ---- Landing page ---- */
.landing-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing-header {
  padding: 14px 28px;
  background: white;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

.landing-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logout-btn {
  font-size: 13px;
  font-weight: 400;
  color: #666;
  padding: 6px 14px;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  transition: background 0.15s;
}

.logout-btn:hover {
  background: #f6f8fa;
  text-decoration: none;
}

.landing-main {
  flex: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 60px 28px 40px;
  width: 100%;
}

.landing-main h1 {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.landing-intro {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 620px;
}

/* Demo cards */
.demo-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.demo-card {
  background: white;
  border: 1px solid #d0d7de;
  border-radius: 14px;
  padding: 32px 28px 28px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
  display: flex;
  flex-direction: column;
}

.demo-card:hover {
  border-color: #1a73e8;
  box-shadow: 0 4px 20px rgba(26, 115, 232, 0.12);
  transform: translateY(-2px);
  text-decoration: none;
}

.demo-card-icon {
  color: #1a73e8;
  margin-bottom: 18px;
}

.demo-card h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.demo-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 18px;
}

.demo-card-cta {
  font-size: 14px;
  font-weight: 600;
  color: #1a73e8;
}

.demo-card:hover .demo-card-cta {
  text-decoration: underline;
}

/* Footer */
.landing-footer {
  padding: 16px 28px;
  text-align: center;
  font-size: 12px;
  color: #999;
  border-top: 1px solid #e8e8e8;
}

.landing-footer a {
  color: #999;
}

.landing-footer a:hover {
  color: #666;
}

/* Responsive */
@media (max-width: 640px) {
  .demo-cards {
    grid-template-columns: 1fr;
  }

  .landing-main h1 {
    font-size: 24px;
  }

  .landing-main {
    padding: 32px 20px;
  }
}
