* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: #08c;
  text-decoration: none;
}
a:hover {
  color: #006fa0;
}
img {
  max-width: 100%;
}
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}
.section-sub {
  text-align: center;
  font-size: 16px;
  color: #666;
  margin-bottom: 36px;
}
.btn {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary {
  background: #08c;
  color: #fff;
  border-color: #08c;
}
.btn-primary:hover {
  background: #006fa0;
  border-color: #006fa0;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,136,204,0.3);
}
.btn-outline {
  background: transparent;
  color: #08c;
  border-color: #08c;
}
.btn-outline:hover {
  background: #08c;
  color: #fff;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  height: 56px;
  display: flex;
  align-items: center;
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: #1a1a2e;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.logo-text sup {
  font-size: 11px;
  font-weight: 700;
  color: #08c;
  margin-left: 1px;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.header-nav a {
  color: #555;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.header-nav a:hover {
  color: #08c;
}
.locale-switch {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  border: 1px solid #ddd;
  background: transparent;
  white-space: nowrap;
  text-decoration: none;
}
.locale-switch:hover {
  color: #08c;
  border-color: #08c;
}
.btn-login {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #08c;
  border: 1.5px solid #08c;
  background: transparent;
  white-space: nowrap;
}
.header-nav .btn-login:hover {
  background: #08c;
  color: #fff;
}
.footer-sections {
  background: #f8f9fa;
  padding: 40px 20px;
  border-top: 1px solid #e5e5e5;
}
.footer-sections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1080px;
  margin: 0 auto;
}
.footer-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 12px;
}
.footer-section-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-section-links li {
  margin-bottom: 8px;
}
.footer-section-links a {
  color: #666;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
}
.footer-section-links a:hover {
  color: #08c;
}
.footer-link-desc {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}
.site-footer {
  border-top: 1px solid #e5e5e5;
  padding: 24px 20px;
  text-align: center;
}
.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 8px;
}
.footer-links a {
  color: #666;
  font-size: 13px;
}
.footer-links a:hover {
  color: #08c;
}
.site-footer small {
  color: #999;
  font-size: 12px;
}
.login-page {
  min-height: calc(100vh - 56px - 60px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}
.login-card {
  width: 100%;
  max-width: 400px;
  text-align: center;
}
.login-card .logo-img {
  height: 64px;
  margin-bottom: 16px;
}
.login-card h1 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
}
.login-card .login-subtitle {
  font-size: 15px;
  color: #666;
  margin-bottom: 28px;
}
.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
  text-align: left;
  position: relative;
}
.alert-error .alert-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: #b91c1c;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
}
.btn-github {
  width: 100%;
  height: 48px;
  font-size: 16px;
  background: #24292e;
  color: #fff;
  border-color: #24292e;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-github:hover {
  background: #1a1e22;
  border-color: #1a1e22;
  color: #fff;
}
.btn-github:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.btn-github svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}
.login-card .admin-link {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: #666;
}
.login-card .admin-link a {
  font-weight: 600;
}
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: #999;
  font-size: 13px;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e5e5;
}
.login-form {
  text-align: left;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 4px;
}
.form-group input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  color: #1a1a2e;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus {
  border-color: #08c;
  box-shadow: 0 0 0 3px rgba(0,136,204,0.1);
}
.form-group input::placeholder {
  color: #9ca3af;
}
.btn-root-login {
  width: 100%;
  height: 44px;
  font-size: 15px;
}
.login-terms {
  margin-top: 20px;
  font-size: 13px;
  color: #888;
}
.login-terms a {
  color: #08c;
  text-decoration: none;
}
.login-terms a:hover {
  text-decoration: underline;
}
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
  .header-inner {
    padding: 0 12px;
  }
  .hero {
    padding: 60px 16px 40px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero p {
    font-size: 15px;
  }
  .hero-banner {
    width: 150px;
  }
  .hero-online {
    font-size: 14px;
  }
  .features-grid,
  .steps-grid,
  .footer-sections-grid {
    grid-template-columns: 1fr;
  }
  .features,
  .how-it-works,
  .faq,
  .cta {
    padding: 40px 0;
  }
  .section-title,
  .cta h2 {
    font-size: 22px;
  }
}
@media (max-width: 768px) {
  .login-page {
    padding: 32px 16px;
  }
  .login-card h1 {
    font-size: 20px;
  }
}
@media (max-width: 480px) {
  .user-page {
    padding: 12px;
  }
  .user-info-row {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .user-danger-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
