/* =========================================
   UI COMPONENTS (Buttons, Forms, Cards)
   ========================================= */

/* Login Box */
.login-box {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Forms */
.form-group {
  margin-bottom: 16px;
  position: relative;
}

.form-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 18px;
}

.form-control {
  width: 100%;
  padding: 14px 14px 14px 45px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: #2a5298;
  box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.captcha-box {
  display: flex;
  gap: 10px;
  align-items: center;
}

.captcha-image {
  background: #f0f0f0;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 4px;
  color: #333;
  font-family: 'Courier New', monospace;
  user-select: none;
}

.refresh-captcha {
  background: #666;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

/* Buttons */
.button-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.btn {
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.btn-secondary {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.btn:active {
  transform: translateY(0);
}

/* Promo Banner */
.promo-banner {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
  text-align: center;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}

.promo-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.05) 10px, rgba(255,255,255,0.05) 20px);
  animation: shine 20s linear infinite;
}

.promo-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 8px;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
  position: relative;
}

.promo-subtitle {
  font-size: 14px;
  margin-bottom: 16px;
  opacity: 0.95;
  position: relative;
}

.promo-cta {
  background: #FFD700;
  color: #000;
  padding: 12px 32px;
  border-radius: 25px;
  display: inline-block;
  font-weight: bold;
  margin-top: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  position: relative;
  transition: all 0.3s;
}

.promo-cta:hover {
  transform: scale(1.05);
}

/* Social Media */
.social-section {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.social-title {
  color: #2a5298;
  font-size: 16px;
  margin-bottom: 16px;
  font-weight: bold;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  transition: all 0.3s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.social-icon:hover {
  transform: translateY(-4px) rotate(5deg);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.facebook { background: #1877f2; }
.telegram { background: #0088cc; }
.twitter { background: #000; }
.youtube { background: #ff0000; }
.whatsapp { background: #25d366; }

/* Loading Spinner */
.loading {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #fff;
  border-top: 5px solid #2a5298;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
