/* IGSellers – Auth Styles (login.html + signup.html) */

.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f0ff 0%, #fff0f5 50%, #fff5e6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: white;
  border-radius: 20px;
  padding: 44px 32px 28px;
  box-shadow: 0 8px 40px rgba(131, 58, 180, 0.15);
  border: 1px solid rgba(225, 48, 108, 0.1);
  position: relative;
}

.back-button {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f3f4f6;
  border: none;
  border-radius: 20px;
  color: #666;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.5px;
}
.back-button:hover {
  background: #e5e7eb;
  color: #333;
  transform: translateX(-2px);
}
.back-button:active {
  transform: translateX(0);
}

.login-logo {
  text-align: center;
  margin-bottom: 20px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.login-logo:hover {
  transform: scale(1.05);
  opacity: 0.8;
}

.login-logo img {
  height: 52px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.login-card h1 {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}

.login-card .subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 24px;
}

.sparkle {
  display: inline-block;
  margin-left: 6px;
}

.sparkle-icon {
  display: inline-block;
  width: 28px;
  height: 28px;
  margin-left: 8px;
  vertical-align: middle;
}

.meta-verified {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #0084f3;
  font-weight: 500;
}
.meta-verified img {
  width: 24px;
  height: 24px;
}

.form-badge {
  display: inline-block;
  background: #f3e8ff;
  color: #7c3aed;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

/* Full-width btn in auth pages */
.login-card .btn-primary { width: 100%; }

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.signup-text {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.signup-text a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}
.signup-text a:hover { text-decoration: underline; }

.logout-link {
  display: block;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
  margin-top: 12px;
}
.logout-link:hover { color: var(--text); }

.btn-skip {
  width: 100%;
  padding: 11px 16px;
  background: #f5f5f5;
  color: #333;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 12px;
}
.btn-skip:hover {
  background: #efefef;
  border-color: #d1d5db;
}
.btn-skip:active {
  transform: translateY(1px);
}

.logout-btn {
  display: block;
  text-align: center;
  color: #dc2626;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.login-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.login-footer a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.btn-signup {
  width: 100%;
  padding: 13px 20px;
  background: var(--brand-grad);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.2s, transform 0.1s;
  margin-top: 8px;
}
.btn-signup:hover  { opacity: 0.9; transform: translateY(-1px); }
.btn-signup:active { transform: translateY(0); }
.btn-signup:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* OTP Verification Page Styles */
#otp {
  font-size: 24px;
  letter-spacing: 8px;
  text-align: center;
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

.resend-section {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.resend-link {
  background: none;
  border: none;
  color: var(--brand);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
  font-size: 13px;
  transition: all 0.2s ease;
}

.resend-link:hover {
  text-decoration: underline;
}

.resend-link:disabled {
  color: #999;
  cursor: not-allowed;
  text-decoration: none;
}

@media (max-width: 480px) {
  .login-page {
    align-items: flex-start;
    padding-top: 100px;
  }

  .login-card { 
    padding: 50px 20px 22px;
  }

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

  .login-card .subtitle {
    margin-bottom: 16px;
  }
}

/* ── Google OAuth Button ── */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 20px;
  background: #fff;
  color: #3c4043;
  border: 1.5px solid #dadce0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  margin-bottom: 4px;
}
.btn-google:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 6px rgba(60,64,67,0.15);
  color: #3c4043;
  text-decoration: none;
}
.google-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── Error Box ── */
.error-box {
  display: none;
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.5;
}
.error-box strong {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}
.error-box ul {
  list-style-type: disc;
  margin: 0;
}
.error-box li {
  margin-bottom: 4px;
}
.error-box li:last-child {
  margin-bottom: 0;
}

/* ── Password Requirements ── */
.password-requirements {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 12px 12px;
  border-radius: 6px;
  margin-top: 8px;
}
