/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #0f111a; /* Latar belakang gelap pekat khas Douyin */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  -webkit-font-smoothing: antialiased;
}

/* Container & Card Styling */
.douyin-container {
  width: 100%;
  max-width: 420px;
}

.douyin-card {
  background: #161823; /* Warna kartu panel gelap khas Douyin */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Brand Logo / Icon */
.brand-logo {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #fe2c55 0%, #ff3b5c 50%, #25f4ee 100%); /* Kombinasi warna ikon Douyin */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(254, 44, 85, 0.4);
}

/* Typography */
h1 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
  color: #ffffff;
}

.subtitle {
  font-size: 13px;
  color: #8a8b99;
  line-height: 1.5;
  margin-bottom: 30px;
}

/* Button Styling */
.btn-douyin {
  width: 100%;
  background-color: #fe2c55; /* Tombol merah terang khas Douyin */
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-douyin:hover:not(:disabled) {
  background-color: #e6254c;
}

.btn-douyin:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-douyin:disabled {
  background-color: #2b2e3b;
  color: #606271;
  cursor: not-allowed;
}

/* Loader Animation inside Button */
.btn-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
  position: absolute;
}

.btn-douyin.loading span {
  visibility: hidden;
}

.btn-douyin.loading .btn-loader {
  display: block;
}

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

/* Status Message */
#status {
  font-size: 13px;
  color: #fe2c55;
  margin-top: 14px;
  min-height: 20px;
}

/* Legal Footer */
.legal-footer {
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
}

.legal-footer small {
  font-size: 11px;
  color: #606271;
  line-height: 1.6;
  display: block;
}

.legal-footer a {
  color: #25f4ee; /* Aksen warna cyan khas Douyin/TikTok */
  text-decoration: none;
  transition: opacity 0.2s;
}

.legal-footer a:hover {
  text-decoration: underline;
  opacity: 0.8;
}