/* Authentication Pages Styling */
:root {
  --primary-color: #FF004F; /* TikTok Red/Pink */
  --secondary-color: #6C63FF; /* Electric Blue */
  --accent-color: #FF6B35; /* Energetic Orange */
  --danger-color: #EA4335;
  --neutral-light: #FFFFFF;
  --neutral-gray: #F5F7FA;
  --text-dark: #333333;
  --text-darker: #ffffff;
  --gray-color: #70757A;
  --border-color: #DADCE0;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 25px rgba(255, 0, 79, 0.15);
  --transition: all 0.3s ease;
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-success: linear-gradient(135deg, var(--accent-color), #FF8C42);
  /* TikTok theme accents */
  --tiktok-pink: #ff0050;
  --tiktok-cyan: #00f2ea;
}

.auth-container {
  display: flex;
  color: white;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 40px 20px;
  /* TikTok-like neon dark background with pink/cyan glows */
  background-color: #050505;
  background-image:
    radial-gradient(800px 500px at 85% 15%, rgba(255, 0, 80, 0.20), transparent 60%),
    radial-gradient(700px 450px at 15% 85%, rgba(0, 242, 234, 0.18), transparent 60%),
    linear-gradient(180deg, #000000 0%, #0a0a0a 50%, #111111 100%);
}

.auth-card {
  width: 100%;
  max-width: 500px;
  /* Frosted glass effect over neon background */
  background: rgba(17, 17, 17, 0.55);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);
  padding: 40px;
  margin-bottom: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  backdrop-filter: blur(12px) saturate(120%);
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--tiktok-pink), var(--tiktok-cyan));
}

.register-card {
  max-width: 550px;
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-header h1 {
  font-size: 28px;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: 700;
}

.auth-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
}

.auth-form {
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-darker);
}

.input-with-icon {
  position: relative;
}

.input-with-icon input {
  width: 100%;
  padding: 12px 40px 12px 40px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-size: 16px;
  transition: var(--transition);
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.input-with-icon input:focus {
  border-color: var(--tiktok-pink);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 0, 80, 0.2);
}

.input-with-icon i:first-child {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.toggle-password:hover {
  color: var(--tiktok-cyan);
}

.form-error {
  color: var(--danger-color);
  font-size: 14px;
  margin-top: 5px;
  min-height: 20px;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.8);
}

.remember-me {
  display: flex;
  align-items: center;
}

.remember-me input {
  margin-right: 8px;
}

.forgot-password {
  color: var(--tiktok-cyan);
  text-decoration: none;
  font-size: 14px;
}

.forgot-password:hover {
  text-decoration: underline;
}

.btn-block {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, var(--tiktok-pink), var(--tiktok-cyan));
  color: #0a0a0a;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 18px rgba(255, 0, 80, 0.35), 0 2px 8px rgba(0, 242, 234, 0.15);
}

.btn-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 0, 80, 0.4), 0 4px 12px rgba(0, 242, 234, 0.2);
}

.btn-block:active {
  transform: translateY(0);
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.auth-footer a {
  color: var(--tiktok-cyan);
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* How It Works Button Styles */
.how-it-works-section {
  margin: 20px 0;
  text-align: center;
}

.how-it-works-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 24px;
  background: var(--gradient-success);
  color: var(--text-darker);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  position: relative;
  overflow: hidden;
}

.how-it-works-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.how-it-works-btn:hover::before {
  left: 100%;
}

.how-it-works-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
  background: linear-gradient(135deg, #FF8C42 0%, #FF6B35 100%);
}

.how-it-works-btn i:first-child {
  font-size: 20px;
  color: var(--primary-color);
}

.how-it-works-btn span {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.how-it-works-btn i:last-child {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.how-it-works-btn:hover i:last-child {
  transform: translateX(4px);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .how-it-works-btn {
    padding: 14px 20px;
    font-size: 15px;
  }
  
  .how-it-works-btn i:first-child {
    font-size: 18px;
  }
}

.alert {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}



.alert-danger {
  background-color: rgba(234, 67, 53, 0.12);
  color: #ff9d92;
  border: 1px solid rgba(234, 67, 53, 0.25);
  border-radius: 8px;
}

.alert-success {
  background-color: rgba(0, 242, 234, 0.12);
  color: #9af7f2;
  border: 1px solid rgba(0, 242, 234, 0.25);
  border-radius: 8px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
}

.checkbox-group input {
  margin-right: 10px;
  margin-top: 3px;
}

.checkbox-group label {
  font-size: 14px;
  margin-bottom: 0;
}

.password-strength {
  margin-top: 8px;
}

.strength-meter {
  height: 4px;
  background-color: #e0e0e0;
  border-radius: 2px;
  margin-bottom: 4px;
}

.strength-bar {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width 0.3s, background-color 0.3s;
}

#strengthText {
  font-size: 12px;
  color: #666;
}

/* Password criteria checklist */
.password-criteria {
  margin-top: 10px;
  margin-bottom: 15px;
  font-size: 13px;
}

.criteria-item {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  color: #666;
}

.criteria-item i {
  margin-right: 8px;
  font-size: 14px;
}

.criteria-item .fa-times-circle {
  color: var(--danger-color);
}

.criteria-item .fa-check-circle {
  color: var(--accent-color);
}

.criteria-item.met {
  color: var(--accent-color);
}

/* Responsive styles */
@media (max-width: 768px) {
  .auth-card {
    padding: 30px 20px;
    background: rgba(17, 17, 17, 0.6);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    backdrop-filter: blur(10px) saturate(120%);
  }
  
  .auth-header h1 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .form-options {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .forgot-password {
    margin-top: 10px;
  }
}

/* Resend verification button */
.resend-form {
  margin-top: 8px;
}

.resend-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  transition: var(--transition);
}

.resend-btn:hover {
  color: var(--secondary-color);
}

/* Social authentication buttons */
.social-auth {
  margin-bottom: 20px;
  text-align: center;
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px 16px;
  width: 100%;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.google-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  border-color: var(--tiktok-cyan);
  transform: translateY(-1px);
}

.google-btn img {
  width: 18px;
  height: 18px;
  margin-right: 10px;
}

.separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.separator::before,
.separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.separator span {
  padding: 0 10px;
}

/* reCAPTCHA Styling */
.captcha-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 25px 0;
  color: rgba(255, 255, 255, 0.85);
}

.g-recaptcha {
  margin-bottom: 10px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

/* reCAPTCHA responsive behavior */
@media (max-width: 600px) {
  .g-recaptcha {
    transform: scale(0.77);
    transform-origin: 0 0;
    margin-bottom: 5px;
  }
  
  .captcha-group {
    align-items: flex-start;
    margin: 20px 0;
  }
}
